3 ms·
Best way to (re)learn modern C++ as its own language?
I stopped using C++ back in the mid 90s (before RAII or iterators, for example) -- thus my view of C++ is more of a "C with classes". I want to learn C++14 or C++17 "as it's spoken".
It looks like C++ has moved beyond being an extension to C and now has its own conventions and "slang"(e.g. in C you iterate with for(;;) even though there are vestigial do and while constructs. What are the modern C++ conventions?). What I want is like learning German by watching TV and listening to how people speak instead of reading a textbook. I can and will read the reference, but would like to do so after being "native".
Any recommendations? The names I've read are Gregoire and Gottschling. I mostly program in Lisp, C and assembly; I'd rather not have a this-is-a-byte beginner's book as it probably wouldn't get into the meat of the language.
- gigatexal 10y agotry to contribute to a modern open-source C++ project on GitHub / BitBucket?
- btschaegg 10y agoIf you like to watch language conference talks to get updates about the state of the language, there are plenty of recordings on Youtube. Look for: CppCon, Meeting C++, Microsoft's "Going native" I can personally recommend any talk by: Bjarne Stroustrup, Scott Meyers, Stephan Lavavej, Sean Parent, Andrei Alexandrescu Of course, there are many more gems (e.g. Chandler Carruth's talks are great if you are interested in a compiler author's perspective). As far as reading materials go, I know of two books that seem to cater to your background: Stroustrup: A tour to C++ (http://www.stroustrup.com/Tour.html http://www.stroustrup.com/Tour.html) Meyers: Effective modern C++ (http://shop.oreilly.com/product/mobile/0636920033707.do http://shop.oreilly.com/product/mobile/0636920033707.do) I personally only own the second one, but have already heard good things about the first one as well. The C++ core guidelines (work in progress on http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines) should certainly also be worth a read. Of course, for actual practice, reading/contributing to open source code seems like a good start. Maybe have a look at this list: https://github.com/fffaraz/awesome-cpp/blob/master/README.md https://github.com/fffaraz/awesome-cpp/blob/master/README.md Edit: The "Awesome C++" list also has a "Resources" section that links to even more material...
- gumby 10y agoThanks btschaegg, great list!