Posted by: ahmedashfaque | January 28, 2015

Doubts about object oriented programming -1

When we write source code, we do some type of computation and telling the computer what it needs to do. We use variables and operators to loop through some data or use a decision tree to arrive at some required solution to a problem. We wrap our code inside some procedure. We also use procedures to pass some data. This feature of procedure is used to partition our program logic over many procedures. This is necessary because writing a long procedure is cumbersome and complex. Using many short procedures is more readable  and reduces complexity. Using procedures we can build very large software programs.

In object oriented programming, these procedures are wrapped inside classes. If we really need classes? The object oriented fraternity vouches about objects keeping data safely and claim benefits of inheritance, polymorphism, encapsulation etc. If object oriented programming really that great? If procedural programming is dead? I have some doubts. If what can be achieved using object oriented programming can not be achieved using procedural programming? Why carry this baggage of classes?

The claims of object oriented fraternity is overrated to some extent. Even today if you see most of programming being using object oriented languages, you will see that most concepts like inheritance, polymorphism etc. is not used extensively. Most programmers simply use everything to program using powers of procedures and just wrap these procedures inside some classes. In most textbooks about object oriented concepts like inheritance etc. are used superficially. Serious programmers never bother about these concepts.

May be in future; object oriented concepts may be taken seriously. But currently they are just concepts and there are not many takers for these concepts.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: