3 ms·
Can you give me an example? Not asking disingenuously. I'm a noob and would be keen to learn more.
by qmmmur 5y ago
Can you give me an example? Not asking disingenuously. I'm a noob and would be keen to learn more.
- villasv 5y agoInternet hygiene best practices tell you to ignore advice that starts up saying that some tech/tool/language is “literally” dog shit. The argument might even be valid sometimes, but the extreme and onesided view damages your learning.
- BenFrantzDale 5y agoI don’t know exactly what the troll you are responding to was getting at, but modern C++ generally agrees with them that OO isn’t the best way to do most things. For better and/or for worse, C++ can’t remove features, so classes aren’t going anywhere, but you don’t have to make big OO hierarchies.
- plorkyeran 5y agoWhile the C++ community is largely moving away from OO, the features added to support OO are still in heavy use. For example, std::function is typically implemented by holding a pointer to a templated subclass of a private abstract base class. There's still inheritance and virtual calls and such going on, and that's just not exposed as part of the API.
- User23 5y agoThere's a possibly apocryphal Dijkstra quote that "Object-oriented programming is an exceptionally bad idea which could only have originated in California."[1] Whether or not he actually said it, there is a pretty good discussion in that link. [1] https://www.quora.com/Why-did-Dijkstra-say-that-%E2%80%9CObject-oriented-programming-is-an-exceptionally-bad-idea-which-could-only-have-originated-in-California-%E2%80%9D?share=1 https://www.quora.com/Why-did-Dijkstra-say-that-%E2%80%9CObj...
- typon 5y ago"I invented the term Object-Oriented and I can tell you I did not have C++ in mind." - Alan Kay