Hacker News new | ask | show | jobs
by temp00345 1178 days ago
> I genuinely believe that C++ is just a toxic wasteland of time. It's not even that productive, fun to work with or secure. I would take C, Rust, Golang, Python anywhere, anytime.

Please reconsider bashing it that much, if not out of respect for the people who use this tool daily, then out of the observation that the program you used to write this message was probably written in or uses libraries written in C++.

It's a powerful tool and has been used to create amazing things in competent hands, so maybe its flaws, that we like to bash so much, are a great thing - it's what drove people to create all this other languages that we love to experiment with.

3 comments

C++ has it's ups and downs.

It's still semi-compatible with C, templates are about as close to macros as you'll get with a syntax; and the algorithms parts of stdlib are in many ways brilliant, thanks to Stepanov.

But the complexity is definitely overwhelming.

I suspect that the complexity of C++ is mostly a reflection of complexity of software engineering in general.
C++ isn't a person, and so we're not hurting its feelings by pointing out that it's terrible. If we hurt Bjarne's feelings by criticising his baby I'm sure he'll get over it.

I don't see much difference between pointing out that C++ is a bad idea despite the fact that some good software was written using C++ and pointing out that slavery is a bad idea despite the fact that some famous US landmarks were built using slave labour.

You know, you can replace "C++" in your comment with "PHP" and it would still be just as correct. But that doesn't make PHP (or C++) any better than it actually is.

Also, "reconsider bashing it that much, if not out of respect for the people who use this tool daily", wow. Surely you don't mean that respecting people who are in a tough situation (e.g. having to write C++ daily) involves never pointing out that the situation they are in is, indeed, tough and could be better?