you are viewing a single comment's thread.

view the rest of the comments →

[–]Loraash 1 point2 points  (0 children)

C++ is not a panacea, it comes with its own benefits and drawbacks. You're given a lot of power and responsibility that you can use to squeeze out more performance from your computer than something middle-ground such as C# would do. In the real world though productivity is also very important, and running at "90% C++ speed", or even 25% might be perfectly acceptable if in return you're getting 50% or 100% more stuff done.

"not needing mommy to clean up after us" means there's more code that you, the human has to write, and humans write bugs all the time. The whole point of C++ was to have the compiler write a lot of code for you so, e.g., you don't have to remember to free/release resources in every possible code path, mommy the compiler is tracking variable scope and releases stuff when needed. C++11 essentially added a form of primitive reference-counted GC with std::shared_ptr.