Hacker News new | ask | show | jobs
by vowelless 4054 days ago
You have to be a little smart about C++. Avoid using anything dynamic (including exceptions, dynamic casting, etc).
3 comments

Basically, avoid using C++, except for <insert list of features here>.

The way Qt does is actually quite pleasant to work with, but they avoid most language features and roll their own (QObject, I'm looking at you), even including their own preprocessor.

C++ gives you more than enough rope to hang yourself. Like a chainsaw, it's very powerful, but also extremely dangerous.

It's sad they don't teach C++ properly any more. The stuff I see leaking out onto Stack Overflow from courses is shamefully bad.

A funny statement considering how the author was lamenting the lack of exceptions in Rust :)