Wednesday, 22 January 2014

Object-Oriented Programming

Object-Oriented Programming is the fundamental structure for all high functioning languages.  The basic premise is that instead of limiting a language to syntax and flat information assignments, there is a collection of Objects which can take Methods (to create, modify or delete these Objects), interact with other Objects (within reason), and provide a foundation for a more programmer-friendly interactive software model.

For Python in particular, there are built-in Object Types, which allow for pre-coded Methods and easy access to an inherent understanding of the language.  More customizable programs can be written by creating Classes--a custom Object type defined by the programmer--including what it is, what it can do, how (or if) it interacts with other Objects, how to tell the user when something cannot be accepted; all of these attributes allow for a comprehensive, integrated program.

The architecture of Object-Oriented Programming is such that no matter how complex a program is, there is a way to maintain it because of the reliance on a system of Objects, instead of a linear and dependent structure of code.  A programmer still has to be conscientious of writing efficient and precise code, to avoid creating sources for errors.  This means that a programmer must inherently understand the hierarchy of the Classes that he/she has created, and how they interact with each other.  This also means that he/she should be aware of Objects that may take similar (or identical) Methods to reduce redundant coding.

No comments:

Post a Comment