Hacker News

Ask HN: Which open source project's C++ code is pleasure to read?

I am a C++ developer, but I want to learn and improve writing code that is clean and pleasure to read (for others). What open source project written in C++ would you recommend from which I can learn?

6 pointsm33k44 posted 2 months ago5 Comments
zonovar said 2 months ago:

The SFML game engine is very well written and documented, definitely a pleasure to read. https://github.com/SFML/SFML

MelioRatio said 2 months ago:

I recommend taking a look at this: https://github.com/fffaraz/awesome-cpp

It's a very well curated list containing both older and more recent projects realized in C++, neatly separated into categories.

m33k44 said 2 months ago:

Which of these projects have code that is easy and pleasurable to read?

PaulHoule said 2 months ago:

I like this:


It is a great example of academic code which is used in research but is also pedagogical. If all C++ was like that I don't think anybody would have a problem with C++!