Hacker News new | ask | show | jobs
by trcollinson 3981 days ago
I haven't followed HMH nor Casey Muratori, but the notion that C++ is horrible has been around for a long time. Linus Torvalds famously smacked down C++ and gave at least two reasonable objections to using C++ for "system-level and portable" programming needs [1].

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

2 comments

> 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.

What are those two reasonable objections?