Object oriented programming is quite fascinating. It certainly is much more challenging than the introductory concepts introduced in CSC108. Instead of relying on the built in classes and functions, we're now creating our own, from the ground up. Instead of keeping track of one object going through simple functions to attain relatively simple goals, we're keeping track of objects going through multiple classes that we designed, possibly multiple instances, class methods, special methods and more. Now, we can create more interactive code that achieves more advanced goals.
Learning about classes, I initially found them to be a bit annoying and confusing. I thought to myself, "Why can't we just do what we did in 108? What is this self nonsense? Instances? Bleh." But, over time, I realized how important creating our own classes were. They are the building blocks for what we wish to create beyond the limitations of the built in classes of Python. It took me a bit but I eventually got the hang of creating classes.
The concept of recursion is interesting as I've stated in my previous entry. I still haven't fully gotten the hang of it but it is a bit of a relief to see that other students are struggling a bit with it like I am. Like in this slog, http://samcao918.blogspot.ca/2015/02/week-5-slog.html, this student similarly had trouble with recursion but eventually got over that hurdle and figured out how useful recursion could be. Hopefully, I will understand it better with additional practice over reading week. Any tips for figuring out recursion? I know that we have to figure out the base case and then find a way to keep the function going until it reaches the desired effect, but I'm having difficulty in figuring out exactly how to design past the base case. I've always had trouble figuring out problems like this.
No comments:
Post a Comment