Thursday, 26 February 2015

Object Oriented Programming

Object Oriented Programming
    The whole concept of object oriented programming I find to be a life saver. Being able to create your own data types not only saves time but also simplifies everything. I can only imagine how horrendous it would be trying to create some huge software just with lists and dictionaries. Having all those variables floating around, not necessarily being connected to each other would become overly confusing. Having techniques such as inheritance possible gets rid of the need of rewriting the same code as seen in our assignments and labs. So far we've done class inheritance with the introduction of subclasses but I'm sure such concepts such as object inheritance will come in handy. In fact, I think it would be widely used rather than creating a new data type each time when you only need to change a few things. Creating a basic "super" object with which you then inherit to create various other sub objects. We can virtually customized any type of data structure to match our needs. This week, learning more about recursion; it really lets us do so much when dealing with abstract data types. For instance when we traverse trees, otherwise we'd have to use so many loops rather than a couple lines of simple code. I'm sure what we've learned about object oriented programming doesn't nearly cover the scope of it's entirety. I haven't had the chance to work with a procedural programming language so I can't compare and contrast the two as I've only worked with Python and Java but I'm sure each has their own benefits. If I were to guess, I'd probably say that the procedural languages are for times where you need to be closer to "computer" language or byte code.

No comments:

Post a Comment