4 ms·
Object Oriented paradigm started when procedural was the most popular way to code. There were problems with procedural approach that made understanding and work
by princepajero 12y ago
Object Oriented paradigm started when procedural was the most popular way to code. There were problems with procedural approach that made understanding and working in large applications very tough. Before OOPs came around, coders tried encapsulating their code by separating them into separate files. This however solved only one problem and that too only partially.
Coders also tried revolving their procedures (casually called functions) around their objects - get_student_name(struct student), calculate_ranks(struct student_list) and so on.
It was necessary to have a paradigm that represented code very close to how we see this world. OOPs just had to happen.. it was not avoidable.
Now, the challenge lies in the fact that with everything powerful, one can go ahead and use it incorrectly. There comes the harm. But then there are better ways to learn the concept. I wrote a blog about OOPs recently. Read it here http://wp.me/p5jxzK-1b http://wp.me/p5jxzK-1b
Go ahead and use it, OOPs isnt going anywhere soon and it aint that harmful :)
http://kossip.ameyo.com/2014/11/25/the-unusual-approach-to-object-oriented-programming/ http://kossip.ameyo.com/2014/11/25/the-unusual-approach-to-o...