31

Back to the topic of codebases that as objects of study: last time I listed a few examples that already are heavily annotated. One approach to grow the number of such educational codebases could be to search for feature-complete and stable programs, which are still small enough to be understood by a single person, and create annotation after the fact as derivative artifact. So here a few candidates for that category:

Project Nayuki publishes implementations of many algorithms and datastructures in a variety of languages: the QR Code Generator library is already so well commented that it could in my eyes already be considered educational. The bitmap I/O library, albeit being factored very well, might for an external reader benefit from a bit of guidance and further comment.

Quentin Carbonneaux published a variety of C programs, like a compiler backend, an archiving tool, a text editor or a minimal IRC client, that would be interesting to break down.

Last one: I like Alan Dewars implementation of Conway's Game of Life, as a good example for creating something beautiful with stable web technologies. No time wasted on elaborate build steps, third parties: just plain JS (pre-ES6 style), HTML and SVG. The power of the view source web.