Hacker News new | ask | show | jobs
by dkarl 5247 days ago
I agree. I think people who know C++ and people who do not know C++ will have very different attitudes toward the evolution of C++. I sunk a lot of effort into C++ when it was the best game in town for a lot of things, so I'm excited to see one of the sharpest tools in my toolbox get a little sharper. If you must write C++ code (or C code, since it's easier to write C++ instead) then by all means you should learn C++ in all its gory mud-ballness, and you will have an extremely powerful weapon at your disposal which is much easier and safer to wield than you might imagine. On the other hand, I think anyone who doesn't already know C++ should avoid the investment of learning it if possible, and we should welcome new languages that relieve more and more people of that burden.
1 comments

> anyone who doesn't already know C++ should avoid the investment of learning it

ACK. I know many languages, and my advice after using C++ for several years is: Don't dare try to do everything in C++. Use C++ only when it is absolutely necessary.

Just compare this C++ code

http://shootout.alioth.debian.org/u32/program.php?test=regex...

with this equivalent Javascript code to understand immediately what I mean:

http://shootout.alioth.debian.org/u32/benchmark.php?test=reg...

It's funny that this V8 code runs even 4.5 times faster (!) than C++ :)

http://shootout.alioth.debian.org/u32/performance.php?test=r...