I used to do some C++ 10 years ago. I now have to work on some new projects that will require C++. I know that C++ evolved a lot. Without being after all the new features, I'm looking to write safer code (eg through safer pointer handling).
Do you know about some ressources focusing on how to code in C++ in a "modern" and safe way for people with previous experience in the language? For example, after some search, I have "Effective Modern C++" in mind (focusing on c++11/14), but I would love to hear what the HN community has to say before jumping in!
Note: As much as I appreciate other safer languages, C++ is a requirement so I'm really looking for safety in C++.
Thanks!
I recently got back into C++ after big hiatus, just like you, and for me the things that changed are:
- definitely the things you mentioned: much safer constructs (unique_ptr, move semantics)
- the use of CMake as a build system
- much less focus on arcane templates and libraries like Boost
- new tools like sanitizers
- new IDEs (CLion)