by dman · 6y ago · 0 comments
What pleasant surprise(s) exactly are you talking about?
Actually, never mind.
After a year of Rust I see myself touching C++ code next when I'm 70 and they need some old farts to fix code no one can or wants to touch any more.
And they pay five digits/day (adjusted for inflation) for that service by that time. Now that will be the only 'pleasant surprise' I presage coming from C++ to me in the foreseeable future. ;)
Irrespective of what language you actually choose to write your project in, if you want to learn how databases, caching servers, language runtimes, compilers, allocators, message buses, games, rendering engines, browsers, distributed systems, AI runtimes etc are implemented then the cutting edge as it exists right now is mostly written in C++.
Sure I hate the notation and the language as much as the next guy but I would hesitate to turn down the learning opportunity from so many cutting edge codebases.
In some ways it is analogous to math - lets say you hate the formalisms, symbols and terminology used in set-theory or in calculus, would you refuse to learn it if you knew that learning the formalism allows you to tap into 300 years of accumulated wisdom from some of the brightest minds that went on to do math?
Clearly no. Any complicated enough system software in C finish quickly in a mess of void* , macros and buffer overflow.
Even making something as trivial as an hash map goes quickly in void* / macro mess in C.
It is for a reason that most system side services (or game engines) are written in C++ nowadays.
I get what you're saying, C++ is worlds away from where it was even 15 years ago. Don't downplay it's complexity though.
All I was trying to say is that the bad news with respect to C++ is priced in and the language only has to be marginally better than what its detractors make it out to be.
this one of those things that keeps getting repeated, but at least personally I have never seen in the wild.
As Carmack once said, if it compiles, it'll find its way in your codebase.