|
|
|
|
|
by pcblues
943 days ago
|
|
I studied CWEB when I did computer science in the early 1990s (eek!). While it is a way to document and compile your programs from a single file, it still contains the problem of where the story of a program should happen, and in keeping the documentation and code in line and up to date with each other. It should also be understood that the documentation is for other programmers and not users, since the printout of the document includes the code in-line. |
|
It can be difficult, because the assumption is emphatically not that the reader in unfamiliar with the target language. To that end, much of the code you find in CWEB will still be using idioms of the target language. Can still be somewhat jarring if you are not expecting that.