by sprite · 6y ago · 0 comments
After that you can try Stroustrup's "Tour of C++", second edition for a more formal introduction to the language (C++20). You will be ready to tackle coding modern c++.
That said, I find he only covers a few of the more tricky topics, then after a brief “this is what it is and why its useful”, then spends more time on “these are all the edge cases that are dangerous and confusing”.
Maybe he’s right and it’s important to learn all that. But I tend to finish a chapter and think “Cool feature, but I’ll never remember all those foot-guns so I’ll just avoid it if I can”.
But maybe that’s a fair take on C++ <shrug>.
Most books just explain the language/system design, and add value only by crafting good explanations. But Scott (and others) add an element of experience as well, which is extremely valuable.
I don't think you need to learn all the corner cases, but reading about them at least helps me a lot with understanding the underlying semantics. And when I do run into them, I might get a vague uncomfortable feeling that's enough to make me go back to the book for a reminder.
Arthur O’Dwyer - Mastering the C++17 STL,
Jacek Galowicz - C++17 STL Cookbook,
Scott Meyers - Effective Modern C++ books
also https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...
and https://en.cppreference.com
and the conferences of CppCon in youtube.