4 ms·
I’d take a guess the majority of OOP-haters hate it because “when you have a hammer everything looks like a nail” syndrome. That syndrome can lead to over-abst
by fsociety 6y ago
I’d take a guess the majority of OOP-haters hate it because “when you have a hammer everything looks like a nail” syndrome.
That syndrome can lead to over-abstraction and tight coupling of objects.
- _jal 6y agoI must admit that the first time I encountered a factoryFactory, I questioned what I was doing with my life.
- ncmncm 6y agoThis is often called "Java Disease". Java offers only one mechanism that gets abused for everything. Contrast with C++ (or Common Lisp, Haskell, Python) that support numerous abstractions, so that the best may be chosen. So, people don't really hate OOP. They hate people who learned to program on Java, and still think that way.
- aaron-santos 6y agoRiffing on this a bit. Consider two things. Firstly, that OOP is "the kingdom of nouns"[1]. Secondly, consider mapping the human language space to the programming language space. It's difficult until you also consider conlangs like Kēlen[2] which also attempt to build a kingdom of nouns. OOP is a hammer that makes everything a nail for the same reason Kēlen is a conlang rather than a humlang. There is a certain element of hoop-jumping that takes place when a language doesn't have the grammar to express things naturally. [1] https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html https://steve-yegge.blogspot.com/2006/03/execution-in-kingdo... [2] http://www.terjemar.net/kelen/kelen.php http://www.terjemar.net/kelen/kelen.php