r/cpp • u/Both_Helicopter_1834 • Mar 18 '26
What open source projects in C++ have the highest code quality?
My understanding of the characteristics of quality code are the conventional ones.
- operations on an object that are allowed in a particular object state do not put the object into an invalid state.
- it's prioritized to organize the implementation of each object into the smallest possible number of sub-objects.
- no cryptically abbreviated names are used, except possible in very small scopes.
With the program(s)/executable(s) themselves, as well as modules with corresponding namespaces, being considered singleton objects.
Fair dinkum if you want to name projects that score well under a different understanding of code quality.
191
Upvotes
View all comments
Show parent comment
1
u/MarcoGreek Mar 19 '26
I spoke about the interface from the customer perspective. I work with C++ 17 libraries and you can feel it. No support for std::format. They invented their own span. There are many small things.
And for serialization look at Glaze. They now support reflections which saves you quite some boilerplate code.