Re:Ask HN: HMH anti-OOP movement
by dragonwriter on Tuesday July 28, 2015 @12:59PM
(#9962936)
> but the notion that C++ is horrible has been around for a long time
Yeah, "C++ is horrible" is as old as C++.
The exact basis has changed -- early on, it was that C++ did OOP poorly, even compared to other contemporary C-based efforts (notably, Objective-C). Now its more that OOP is the wrong solution.
Now, is this true for every application? Of course not. Does OOP work well in C++ for some applications? I am sure it does. Can C++ lead you to making poor design decisions? Of course it can, so can C or anything else (except for lisp, lisp is perfect ;)).
Of course, it's all a rather subjective argument. You could always port what you are learning from HMH to C++ and see how it works or what changes in an OOP style. I bet that would be really interesting and educational!
[1] http://harmful.cat-v.org/software/c++/linus