4 ms·
Ask HN: Catching Up on C++?
Hi folks, up until 2013, I worked as a C++ developer but moved on to web technologies. In the last decade or so, the language and its features have moved on significantly; when I left, C++11 had barely made its way into compilers, so you could say I'm quite behind on the times.
This is probably a stretch, but since I want to get my feet wet in C++ again, is there some resource that could help me catch up on new features and things worth learning? I would love to avoid reading through reams of standards, but if that's it, that's it.
Many thanks in advance.
- stefanos82 3y agoJust go through this https://github.com/AnthonyCalandra/modern-cpp-features https://github.com/AnthonyCalandra/modern-cpp-features and you should be fine. If you also like thorough explanations and graphs, there's https://hackingcpp.com/ https://hackingcpp.com/ that could answer many questions you might have. By the way, just in case, bookmark this online C++ reference https://eel.is/c++draft/ https://eel.is/c++draft/ for diving in deep waters. Good luck!
- pjmlp 3y agoTour of C++ 3rd Edition [0] would be a good start. [0] - https://www.stroustrup.com/tour3.html https://www.stroustrup.com/tour3.html
- LorenDB 3y agoRead through https://www.learncpp.com https://www.learncpp.com. You'll get a complete refresher on the language, but it will be using modern C++ stuff (modern in this case means C++17). For C++20 and newer, honestly, the only big feature that I ever use is concepts, although I do also use the new struct initialization syntax[0]. [0]: https://www.cppstories.com/2021/designated-init-cpp20/ https://www.cppstories.com/2021/designated-init-cpp20/
- badpun 3y agoI personally think modules are fantastic. Finally, with modules, C++ catches up to the rest of programming world, and allows you to completely ditch the outdated header/implementation split.
- _ua_ 3y agoI think C++20 coroutines are awesome! They need a bit of getting used to but helps to write very readable code, specially when having to mix C++ with C callbacks.
- netule 3y agoFantastic, thanks for the pointers!