Sunday, 15 February 2015

Week 6: Summary of OOP

Summary of OOP


Object oriented programming has always been a very satisfying aspect of computer science for me. When I first started programming, I constantly thought to myself "there must be an easier way to do this" as I scrolled through my horribly messy and unorganized code.  When I first discovered OOP, it not only kept my code neat and modular, but kept all of the methods organized, and made documentation easier.  This made certain problems much easier to get around, such as problems related to game design, which I was very interested in at the time.

So far Object Oriented Programming in Python, as taught in CSC148 has been very simple to me. Pyhon syntax for objects is very simple and English-like, which pretty much follows par with the rest of Python. One thing I found challenging was the custom of naming variables with an underscore at the beginning to prevent others from accessing them without using a get method.  I'm accustomed to having public and private variable in Java, so it's strange to me that private variables are not enforced, but politely followed by the python community.

No comments:

Post a Comment