News for hackers. Stuff that matters.
Re:Programs to Read by akkartik on Wednesday September 16, 2015 @07:23PM (#10230658)
Most documentation is non-linear. Functions are documented without regard to their calls, etc. The trouble with them is that it's hard to scale up to large sub-systems. If you are modifying some cross-cutting facet of a large system, it's often hard to find the right place to add an illuminating comment given all the different places you are modifying simultaneously. Literate programming is a way to give that place by introducing linear narrative structure in documentation. It can be quite valuable at large scales.

That said, my critique: http://akkartik.name/post/literate-programming (I actually read many of the programs in OP to write that.)

Re:Programs to Read by Retra on Wednesday September 16, 2015 @09:45PM (#10231113)
You have an excellent point in there: if you aren't free to put your code in any order you like, then it probably won't fit very well into your prose.