Re:Elements of Modern C++ Style
by cageface on Saturday October 29, 2011 @10:40AM
(#3171963)
I've been using a lot of these new features in XCode 4 and my code is already much cleaner and more readable. Modern C++ really is a pleasure to use and I love writing code that's this high level but still smoking fast.
[ Parent
| on HN ]
Are you kidding? The syntax is still inscrutable and the template system is shit. It's all slightly less shitty than it used to be:
binder2nd< greater<int> > x = bind2nd( greater<int>(), 42 );
but IMHO C++ jumped the shark in 1996 or so.
While people are ranting about C++'s warts I'm having a great time writing performant but clean DSP code and getting paid for it. I don't give a shit if there's some imaginary pristine alternative.
I used to write high-performance embedded C++ code (and get paid for it). I'd still rather use a JVM language for the general logic and drop down to low-level C/assembler for the really performance-critical stuff.
The only thing I'd use C++ for these days is where it's minimal runtime support requirements come in handy (e.g. runtimes for other languages).
Sure. I'd use Scala if the situation allows. But these days I'm doing realtime DSP & OpenGL stuff and I'm very happy I don't have to do this in a language as low-level as C.