RE: https://mastodon.social/@animesh/116685030985963198
The utility of literate programming in a nutshell
"Programming is building a mental model. It is not mechanical code production. The shared mental model in developers' minds is the real product. A program is "living" only while the team understands this theory. When programmers leave, it becomes "dead". Without the original theory, new maintainers treat software as a black box, creating patchwork fixes that cause side effects and architectural decay."
Absolute truth.
Originally from Peter Naur's "Programming as Theory Building" (1985)
@liberty
I have thoughts about that.
I don't know of many full-blown literate programs. I know there's Knuth's TeX (and other work) and I tried to read it and found it utterly boring.
There's also Emacs, which isn't exactly a literate program, but close in spirit.
And it has org-mode, and org-babel that can be used for literate programming.
Over a year ago, I started rewriting my s-expression editor #GRASP in literate style, using org-mode. I'm not sure what to think of it.
I feel that it's "locally OK", but as it's getting larger and larger, it gets more and more difficult to navigate. Currently it's below 50k words, and around 200 pages when exported to PDF. Also, although I managed (like, just yesterday) to obtain something workable, it's still far from working software, and it has only a tiny fraction of features of the original.
In either case, my work is avaliable at https://codeberg.org/panicz/grasp/src/branch/main/literate/grasp.org and while it may not be the best literature, I'm open to suggestions/collaboration