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.

Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 1 decade ago

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?

5 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    I would not call it a stupid question. Its a question that can invite a big discussion(may be arguments and fights) In my opinion both the programming paradigm should be used according to requirement. If an application is very huge with good processors and large memory at its disposal OOP would usually suit. If its an application that is going to run on limited resource like a 4 Kb memory with probably 12 KB storage, is there any scope for OOP? Procedural language would probably provide less resource hungry code.

    --

    Ck

    http://www.gfour.net/

  • 6 years ago

    It depends on the abstraction you are doing:

    - Object-oriented programming results in genericity: If you re doing standard library or kinda stuff, then you should use objects like, say, Stream for objects you can read from and write to (appropriate parent classes like InputStream and OutputStream would be fine) and then FileStream for files, TcpStream for network, etc. That way, you could write function which use streams no matter if they are files, computes around the network or the terminal. This type of programming requires a really good (or at least reasonable) amount of documentation for the protected functions so people can inherit it to make their own abstractions.

    - On the other way, procedural programming is simpler and often it represents a better abstraction, because when you re doing pure object-oriented programming it s difficult you don t end up with a lot of static functions (which shouldn t have been invented, NEVER) on the first class you see.

    Thus, the best is mixing both object-oriented and procedural programming styles as they are used for different things.

  • 1 decade ago

    i do agree object oriented will always be easier im going to school for web design and its easier for me to learn the object oriented over just the code but its all good though good to know both though :-)

  • 1 decade ago

    Stupid question. All you did was describe the benefits of each type of programming. Yes, ofcourse, I agree. Anyone who knows anything about programming would have no choice but to agree.

  • How do you think about the answers? You can sign in to vote the answer.
  • Anonymous
    1 decade ago

    .

Still have questions? Get your answers by asking now.