Thursday, 23 January 2014

Object-oriented programming! (creative title to come)

Welcome back!

So here is the first academic blog of the semester. This one requires us to mention the concept of object-oriented programming so here it goes:

Object-oriented programming is a new concept to me. Through research I have discovered that it is in many ways an extension, or modification, of older programming techniques such as structured programming and abstract data types. It carries over many similarities – and in some cases inherits the same characteristics.

Where it differs is in the actual format of the program. Objected-oriented programs organize their code and data around one central unit, otherwise known as an ‘object’. These objects, or classes, provide a template for programmers to add code which can modify the data in a clear, organized fashion. Code which modifies data, or performs a required task is called a method. 


 I enjoy working with Python, an objected-oriented programming, because it allows for a visually clear and organized way to program. I find it easy to logically follow the concept of a class. Take, for example, the concept of a class food; Vegetables would be a subclass of food, on which we could employ various methods such as cooking, eating, preparing etc.  In many ways, such as the example above, it allows programmers to consider objects as they would in the real world; making it simpler and more straightforward to implement new methods and functions within the given object much as they would in real life.  

Object- oriented programming, like most programs provides both positive and negative aspects to the programmer. If the good outweighs the bad is something, I believe, is based off personal preference and experience. Then again, I am not familiar with other programming styles, making me biased towards this one.  Who knows, maybe one day I will learn to program in a different style and look back at this blog and wonder why I ever enjoyed programming in Python.

No comments:

Post a Comment