3 ms·
I've left C++ for C (and Python, and K, and others) somewhere around 2007 when it only started getting crazy. I sort-of keep track of the changes to the standar
by beagle3 6y ago
I've left C++ for C (and Python, and K, and others) somewhere around 2007 when it only started getting crazy. I sort-of keep track of the changes to the standard like lambdas, without which you can't read modern code.
But assuming I lose my sanity again and decide to go back to doing C++, which resource would you recommend for properly catching up the last 15 years of C++ changes?
- pjmlp 6y agoBjarne's Tour of C++ 2nd Edition book.
- vanderZwan 6y agoSeconding this. It's a very clean and accessible overview. If the code examples in it were your only exposure to C++ you'd never guess how much of a mess things can turn into "out there" in the wild.
- coldpie 6y agoA psychiatrist.
- uwagar 6y agoi'd second that.
- nikki93 6y agoTour of C++ by Bjarne Stroustrup as others have mentioned. Effective Modern C++ by Scott Meyers (esp. for the chapters on smart pointers). Arthur O' Dwyer's "Mastering the C++17 STL" David Vandervoode and Nicolai Josuttis etc.'s "Templates the Complete Guide" The first chapter of "Elements of Programming" by Stepanov, and maybe the rest if you want. I think also, just kinda glancing over the spec. Bjarne's paper on the evolution of C++ from 2006 to 2020 is also important I think: https://dl.acm.org/doi/10.1145/3386320 https://dl.acm.org/doi/10.1145/3386320 As for talks, https://www.youtube.com/watch?v=XS2JddPq7GQ https://www.youtube.com/watch?v=XS2JddPq7GQ is great for value categories and move semantics https://www.youtube.com/watch?v=St0MNEU5b0o&t=6s https://www.youtube.com/watch?v=St0MNEU5b0o&t=6s also move semantics, and also part 2 of that if you want I'll add more talks here in a bit! And honestly if you've liked C, you can get far by just starting with that then slowly adding things you want. I think the first things one may end up reaching for are std::vector / std::string etc.; then being able to attach methods to types, then some templates, some auto, some lambdas. The old vtables / RTTI approach I basically never use anymore.
- nikki93 6y agoActually "C++ Crash Course: A Fast-Paced Introduction" by Josh Lospinoso seems to cover some good ground.
- lenkite 6y agoC++ STL Cookbook, C++ 17 in Detail, C++ Notes for Professionals (free very detailed cheatsheet) https://books.goalkicker.com/CPlusPlusBook/ https://books.goalkicker.com/CPlusPlusBook/, C++ Concurrency in Action, Second Edition, Functional Programming in C++