Forum Replies Created
-
AuthorPosts
-
::
Here is a good discussion of some good modern C++ codebases: https://news.ycombinator.com/item?id=24901244
These are some that often get recommended:
https://github.com/llvm-mirror/clang
https://github.com/nlohmann/json
https://github.com/facebook/folly
Different people have different ideas of what good modern C++ looks like and library code will look different to higher level application code, so it’s hard to find good examples.
Here is a link to a list of popular open source codebases to have a browse around: https://github.com/fffaraz/awesome-cpp
::I often see Facebooks ‘Folly’ recommended https://github.com/facebook/folly , boost libraries, and llvm clang, but they’re quite heavy weight.
Here is a repo with a bunch of Open Source C++ projects supposedly in modern C++, but I haven’t looked through it much. https://github.com/rigtorp/awesome-modern-cpp
Here is a similar discussion with a bunch of suggestions https://news.ycombinator.com/item?id=24901244
If you look through large popular libraries you’ll tons of boilerplate code and lots of template metaprogramming. It might be easier to read some higher level code of smaller applications?
::Here is a good discussion of some good examples of modern C++ https://news.ycombinator.com/item?id=24901244
The trouble is, different people have very different ideas about what ‘good modern C++’ looks like, and in fact it will look very different depending on what you’re trying to do – middleware or library code will look quite different from say, higher level application code. Library code is often full of template metaprogramming and generics which can be quite difficult to follow.
Here are a few which often get recommended :
https://github.com/llvm-mirror/clang
::I tried to reply to this post here but it didn’t work https://www.modernescpp.org/forums/topic/examples-of-good-souce-code/
-
AuthorPosts