Re:C++11 FAQ
by maxlybbert on Thursday January 26, 2017 @10:27AM
(#13492071)
That was the thing: starting with C++98, I was able to pick up C++11. But starting from scratch? I'm not sure.
[ Parent
| on HN ]
Re:C++11 FAQ
by cmrdporcupine on Thursday January 26, 2017 @10:43AM
(#13492232)
Wow I feel the opposite. Because C++98 and earlier were so deficient in a lot of ways, people who got clever with it often ended up down a rabbit hole of template metaprogramming, boost:: bloat, custom classes for callback stuff, custom classes for reference counting or other smart pointers, etc. etc. Unlearning all that took me some time.
In my 5 years at Google, I've watched many developers start from scratch on our subset of modern C++. There doesn't seem to be a huge challenge with it.
Is the subset of boost in Google still the same as the public one?
https://google.github.io/styleguide/cppguide.html
It it is, I consider Google very lucky to have these who decided not to allow everything.
We have a rather lagerish codebase of C++11/14 and we manage to get people coming from other languages (Java / ObjC) to start working with it just fine. Modern C++ is pretty decent and readable (excluding some quirks of STL naming).
Of course good code reviews and testing is a must to help people to get up to speed and stop shooting themselves in the foot :)