Tuesday, November 15, 2016

Reflection of class on Nov 15th
  As this chapter 3 says, it’s the final turtle chapter which can provide a few ideas about creating our own images by using a minimum of code and many loops. Well, I did really get some new fabulous ideas like “fractal tree” and practice them in turtle module in class, but actually I took a long time to understand them and converted them to my own ideas.
  In this chapter, I find that the “import turtle” and “t=turtle” commands are used in all the examples and I should add extra “t.” before every needed function as the prefix of function name to make sure relative codes can work normally, that is, it’s the better way to use particular functions which have the same name in different modules although it’s a little inconvenient.
  When I finished the whole procedure by complex coding, I always need to examine which image it can output and back to the procedure to modify relative inappropriate code according to the image. Sometimes the image appears too fast that I cannot monitor the track of formation immediately so that I should run the procedure again and again to try my best to follow the little turtle. But I won’t worry it anymore because the “speed()” command can help me a lot because I can set the speed of picture drawing between 0 to 10 to fit my different purpose by using it. And, argument 0 represents that the computer can go as fast as it can.
  To be honest, I met a big problem on understanding the procedure of the “fractal tree” although I knew the major point here was recursion where a function calls itself from within itself just as the instruction says in the beginning of this example. I inputted all codes of example in Python 3 and run it in the lowest speed to monitor the track of turtle in order to clarify the meaning of important components. Well, I still couldn’t understand why the whole procedure could output a fractal tree although I had known how the fractal tree was formed. I don’t know how many times the main function would be called from within itself and when the calling would be broken by which code. I discussed the whole procedure with my classmates but we were still confused about it.

  So I skipped this “fractal tree” and practiced other creative ideas because I didn’t want to waste the whole morning on it and get the failed feed. Because of the limited class time I had no time to ask you about the “fractal tree” procedure, and I’ll try my best to figure it out in my spare time. If possible, I’ll ask for your help in next class.

1 comment:

  1. OK. I think you are doing well, though. The Fractal Tree is an extra exercise. I am mainly concerned that you are able to work through the core coding for each chapter.

    ReplyDelete