3 ms·
In the 80's I was intrigued by literate programming. I studied Knuth's literate source code for TeX carefully. You're right, it never caught on, but a few year
by todd8 5y ago
In the 80's I was intrigued by literate programming. I studied Knuth's literate source code for TeX carefully.
You're right, it never caught on, but a few years ago I read a statement by Knuth that said he still writes code that way.
Today, about half of the time my Emacs configuration is written in org-mode babel[1] which supports literate programming. In fact, this a common example of literate programming that I see on the internet along with Jupyter Python[2] notebooks widely used by scientists.
Although literate programming seems to work okay for Emacs configurations (often reaching over a thousand lines of code), I've never felt like the approach helped me enough to employ in other programs.
[1] https://orgmode.org/worg/org-contrib/babel/intro.html https://orgmode.org/worg/org-contrib/babel/intro.html
[2] https://jupyter.org https://jupyter.org
- NelsonMinar 5y agoThat's an interesting connection between Jupyter and Literate Programming. The difference being Jupyter-style notebooks also have the output of the code; in fact the source is often hidding. Jupyter was inspired by Wolfram Notebooks, which uses "literate programming" as a term directly in their marketing materials. https://www.wolfram.com/notebooks/ https://www.wolfram.com/notebooks/