LiteratePrograms.org: An Executable Wiki
en.literateprograms.org
en.literateprograms.org
The literate programming examples I have seen lack suitable modern integrated development environments. The idea of interweaving source code and commentary in a book style has few advantages over Javadocs, Doxygen, and the like. And they are more work for the developer.
The concept of coupling comments to code is a good one. What we need to do is loosely source code to its comments using an intelligent editor. Mute the music and watch the end of the following video:
http://www.youtube.com/watch?v=u3QqjhzhnAw&t=1m41s
Essentially, a dual panel editor. On one side is source code, on the other are the comments linked to each line in the source code. You could still generate the wiki-like interwoven documentation, but you could also generate the documentation as a single document (without source code).
Further, since the documentation editor is independent of the source code editor, the documentation could be written using a simple mark-up. You could also embed business requirements within the commentary to suggest the exact business requirement being met by the code (using linked text and a single source; update the business requirement and you know what code needs to change). Conversely, formal technical documentation (user guides, administration manuals) could link directly to the source code commentary (a single source, once again).
I'd be interested in reading the disadvantages to such a dual editor system.
But it doesn't follow the example of literate programming, I guess largely because the code is generally boring, and written to quickly solve a problem, not primarily to act as an exemplar.
I don't know, maybe I'm doing it wrong?