4 ms·
> then it's just a syntax equivalent of training wheels. I wonder if there is a divide between people who programmed before OOP was commonplace and those first
by wvenable 6y ago
> then it's just a syntax equivalent of training wheels.
I wonder if there is a divide between people who programmed before OOP was commonplace and those first experience is learning it in school.
For me the idea that OOP is not suitable for more complex situations betrays it's very conception.
- astrange 6y agoExamples of alternative models to imperative OOP that have languages: https://en.wikipedia.org/wiki/Entity_component_system https://en.wikipedia.org/wiki/Entity_component_system (game-style C++) https://en.wikipedia.org/wiki/AoS_and_SoA https://en.wikipedia.org/wiki/AoS_and_SoA (Jai) https://en.wikipedia.org/wiki/Relational_model https://en.wikipedia.org/wiki/Relational_model (SQL) https://en.wikipedia.org/wiki/Logic_programming https://en.wikipedia.org/wiki/Logic_programming (Prolog and Mercury) The goto critique of OOP used to be http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom... (as seen in the article) but I think OO languages have managed to steal enough good ideas from functional ones by now that it doesn't apply so much.
- wvenable 6y agoOOP is several orders of magnitude more successful than all these alternatives combined. As I said, it's so successful that its success is invisible. All that is ever talked about are the tiny percentage of exceptions where OOP doesn't work well like, for example, where entity-component might be more appropriate. Those tiny exceptions get way more attention. Being contrarian to the massive success of OOP is great way to get upvotes but it doesn't reflect reality. The success of OOP is so huge that it's boring.
- astrange 6y agoVideo games are the only kind of software people like enough to regularly pay $60 for and write emulators to run, so I think we should learn to respect how they're made, which is using OO languages but not using all the ideas. Also I think SQL is pretty popular!