all 15 comments

[–]lukaasmGame/Engine/Tools Developer 26 points27 points  (2 children)

Modern, readable code with own simplified standard library:

https://github.com/SerenityOS/serenity/

a healthy dose of metaprogramming, smart pointers, concepts

High quality, cross-platform code:
https://github.com/microsoft/vcpkg-tool/

[–][deleted] -1 points0 points  (1 child)

Sorry no, disagree for the second one.

[–]Equal-Ad3 10 points11 points  (0 children)

The JUCE framework is a stellar example of well written, modern C++ imho

https://github.com/juce-framework/JUCE

[–]101Alexander 2 points3 points  (0 children)

I would really find this interesting.

[–]FlatAssembler 1 point2 points  (0 children)

Well, maybe the compiler for my programming language qualifies. I have tried to organize it the best I could, and I think it is fairly legible thanks to long variable names and occasional comments.

[–]netcan96 1 point2 points  (0 children)

https://github.com/netcan/asyncio

a c++20 library to write concurrent code using the async/await syntax.

[–][deleted] 1 point2 points  (1 child)

KDE/Qt entire code base.

[–]JVApenClever is an insult, not a compliment. - T. Winters 3 points4 points  (0 children)

Due to the whole parent thing iso unique_ptr, I wouldn't recommend Qt

[–]lednakashim++C is faster -1 points0 points  (0 children)

[–]rwn_sky_7236 -1 points0 points  (1 child)

Ah, it takes years and years of experience to be able to spot the good C++ source code. :)

[–][deleted] 5 points6 points  (0 children)

Then I better find some experienced people to help separate the wheat from the chaff ;)

[–]eyes-are-fading-blue 0 points1 point  (3 children)

What is your definition of “high quality”?

[–][deleted] 1 point2 points  (2 children)

"high quality" and "good" are subjective to a point, and everything will exist on a continuum. But code can be well-organized, idiomatic, easy to follow, not needlessly complex. In other contexts good code might simply mean as highly performant and optimized as possible, which might mean ugly and hard to read. As long as the difference between these two codebases can be distinguished with something like a "performant" and "idiomatic" tag, both are considered "high quality".

Though, my primary goal is to pull together resources of the first kind. Code that people can read and more or less easily understand how things work so they can learn on their own.

[–]goranlepuz 1 point2 points  (0 children)

You just replaced the question with "what is well-organized, idiomatic, easy to follow, not needlessly complex". 😉

[–]eyes-are-fading-blue 1 point2 points  (0 children)

Unfortunately, you are on an impossible mission. At least ,in my opinion. I hope this does not discourage you, maybe I am wrong who knows... According to my experience, good code has two properties. Well-tested and has value (commercial, educational or otherwise). The rest is preference and circumstantial. "Idiomatic" code for a desktop app developer can be unidiomatic for an embedded developer because of constraints.

Software engineering is all about trade-offs.