Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Object-Oriented Programming (vs) Procedural Programming?
I think that Procedural Programming is the most efficient methodology of coding (perfectly operational, negligible amount of bugs and errors), whereas object-oriented programming is more practical (good-looking, easier to code & saves time).
Don't you agree?
4 Answers
- AndyLv 41 decade agoFavorite Answer
Object Oriented Programming is to Procedural Programming what an animal is to a documentary of the animal. The animal will respond to its environment directly, while the documentary gives instructions concerning how the animal is to perform specific actions characteristic of it The first is living and interactive, while the second is conditional, modular, and constrained.
- jplrvflyerLv 51 decade ago
I've never seen any evidence to suggest procedural programming is better for any reasons what so ever. I see absolutely no reason to expect procedural programming to be more reliable.
OOP is, after all, a natural extension to procedural programming. OOP is like enhanced procedural programming. You are still writing functions or procedures or whatever term you want to use, but you are organizing them differently (translate: better).
So no, I don't agree. In 12 years of OO programming (at 25 years total), I've never encountered a problem that could be better solved if I switched back to a non-object design. There might be cases dealing with embedded systems or operating system development, but I don't do that sort of programming.
- Anonymous1 decade ago
Procedural programming is far less efficient and far more bug prone.
A primary reason for this is that OO systems have to have automated memory management. In procedural languages, anything from 50% to 80% of bugs are related to memory management (like many of the security holes in Windows - buffer underruns) and these cannot occur in OO systems.
OO is also far better in programming real world systems such as those involving parallel processing and user input. This is because these things are intrinsically message based, and this is the OO paradigm - procedural languages have no natural way of doing this.
- Anonymous1 decade ago
well object oriented programming is fun and saves time but sometimes even that isnt that easy.i dont really like the idea of oop id use the long way and show off my skill and learn more and more the longer i go.thats just a way to get out of it the easy way.its like saying hi to show you know english but you dont know the rest if ya know what i mean so its cheating im sticking to the old way...