Friday, 6 February 2015

My Impressions of Tracing Recursion

When I firstly learned this topics--- tracing recursion, I surprisingly found that it was quite easy. As I noted in my last SLOG, since the beginning of this course I met so many problems so that I just think all stuff we learned would be very hard to understand!

I believe this topic concerns more about logic thinking, as the tracing required consider the function step by step. During the class, when professor introduced it, I and one of my friend who also took CSC148H both feel that it seemed not hard, especially following the steps on the handout which was given by prof.

I took this feelings with me until I finished my lab in the same week. During the lad I realized that although tracing recursion was indeed not very hard, questions about how to construct the similar function was much more important and harder.

The lab handout asked us to construct a function with given features, I really struggled. I firstly thought about the normal way which was just like those examples gave in class and handout. However, the truth proved that I was wrong.
Then I spent a lot of time on dealing with it and finally got an answer.

I believe that this experience told me that nothing will be always easy. Maybe things seems to be easy at first, but it finally will turn to harder and harder, so it is a good idea to be careful with everything I learned now.  

My Impression of First Few Weeks

It became really terrible for me during the first few weeks. While someone just told me that CSC148H was much harder than CSC108H, I was really not sure how this would be.

Actually, it indeed confused me at the first few weeks. I struggled with the method __repr__, subclass, ADT and some other stuffs covered. For example, when I firstly saw the method __repr__ in class, even though our instructor explained its meaning, I still not fully understand. Fortunately, there is a tutorial each week and it was extremely helpful, and I solved most problems I met during the class by asking my TA. So, now I know that __repr__ is a method that is similar to __str__ which will produce a string representation of a class, but __repr__ can be evaluate by calling eval() while __str__ is not able to.

There were, of course, several other problems, like the "raise"; how to make a new designed class be immutable, what steps did Python take when processing a class which accompanied with subclass....

Because of the existence of those problems, I completely had no idea what was going on for a while, and after went through the instruction about assignment 1 I even did not know how to start it at first.

It was horrible for me during first few weeks, but after I summarized most knowledge we learned and solved problems I met, the whole course became much more clear. Alternatively, when I handled with assignment 1, it helped me to have a deeper understanding about what we learned.

That what I feel about first week, I hope I will do better in future!