Programs To Read

This is a list of programs/collections of code worth reading. Some are GreatProgramsToRead and some are not. What they should have in common is some educational merit. One should benefit from having read the programs listed here.

(It would be helpful if people adding items to this list would include some commentary explaining what makes the programs worth reading, and to whom.)

And why the choice of Pascal is unfortunate, or is that bit just flame bait?

You're free to disagree, but there's more than just flame bait to this comment. See BrianKernighan's article WhyPascalIsNotMyFavoriteProgrammingLanguage for some cogent objections to Pascal -- at least, the dialect of Pascal that was available when Knuth was writing TeX. Many of Kernighan's objections, which were derived from his experience porting his book Software Tools from Ratfor to Pascal, are (not coincidentally) also things for which Knuth felt it necessary to provide workarounds in Web, the LiterateProgramming system he invented specifically for the implementation of TeX and Metafont. Knuth and Levy's later tool, CWeb, which is based on C an C++ rather than Pascal, omits certain features of the Pascal-based Web precisely because C, a more expressive and powerful language, doesn't need them.


See also LiterateProgramming

EditText of this page (last edited January 23, 2010) or FindPage with title or text search