Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone have examples of well-written modern C++ code out there? I used to consider myself a C++ expert like circa 2011 but it's advanced to so quickly that it's almost like a foreign language to me... (though I have tried to keep up a bit... but it's hard without nontrivial examples)


Effective Modern C++ by Scott Meyer is a good tour of new features in the language. I highly recommend it. It's maybe a little too in-the-weeds in some parts but you can just skim those.

It only goes up to C++14 but there's not all that much that's new in C++17. C++20 looks like it's going to be a bigger update, hopefully Scott will come out with a new revision of Effective C++ to address the changes.



I don't really have experience to properly judge it myself, but Jason Turner is highly regarded in this area and references his ChaiScript project a lot in his talks (which are worth looking up on YouTube): https://github.com/ChaiScript/ChaiScript


I'd say tiny-dnn[1] is a good example. Minimal, understandable yet useable neural network library

[1] https://github.com/tiny-dnn/tiny-dnn/blob/master/tiny_dnn/no...


This slideshow [1] was a really great, simple intro to some advanced c++14-and-beyond idioms.

[1] https://speakerdeck.com/olvemaudal/42-silly-ways-to-say-hell...


abseil, folly and seastar are pretty great.


abseil targets c++11. Its modernity is arguable.


Bjarne's book "A Tour of C++" 2nd, then all the Channel 9, CppCon, NDC and C++NOW videos.


std:: is not bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: