In the past few lectures we covered a topic called Object-Oriented Programming. This concept is quite new to me since it was not covered in the previous programming courses I have taken in my life. Back in high school, all of my methods were long and I didn’t know how to break them up into smaller methods. Now, I am taught to create my own type (class), which allows me to break everything into different objects. It sounded like an easy concept to me at first, then it became really hard when it came practical situations. First of all it is hard for me to get the code right because I always get messed up by the “self” thing. I always forget how and when should I add “self” to the code and when shouldn’t I. Secondly, I found it quite hard for me to think of what methods should I be creating. These two are the main problems that come up when I am dealing with Object-Oriented Programming.
I really hope that I can feel more comfortable with Object-Oriented Programming because I believe this will be one of the most important things in my future programming life. I’ll get myself more practices and learn from some other great examples. Hopefully I will overcome my problems in OOP soon.
No comments:
Post a Comment