2 ms·
Doesn't your typical business application model some discrete events on the real world? Why is object oriented programming so popular of it doesn't meet needs o
by hamilyon2 9y ago
Doesn't your typical business application model some discrete events on the real world? Why is object oriented programming so popular of it doesn't meet needs of software it helped to write? There should be some correspondance between principles that layed foundation of OOP and their application, and OOP's popularity os not a coincidence
- db48x 9y agoMost of what OOP is used for is to implement the thousands of minor details that go into implementing a complex system. Peruse the Firefox source code some time; you'll find a large class hierarchy of different types of strings, and another one for different types of DOM nodes, and another for different types of documents that the nodes belong to, another for windows of various types, another for various types of images that it can decode, etc. None of that has anything to do with modelling entities in the real world.
- YeGoblynQueenne 9y ago>> Why is object oriented programming so popular of it doesn't meet needs of software it helped to write? Perhaps because the vast majority of programmers learn to program in an OOP language first, and then find it very hard to learn a different paradigm. Or maybe they have very little time to do so. I think this leads right back to the point alankay1 is making (if I got it right): that given a hammer and sufficient time, you become a hammerer; someone who can hammer nails and can't do much else. So asking "why is OOP so popular" is a bit like asking "why do people watch Holywood movies" (i.e., if they're not good cinema). That's what they're used to.