4 ms·
How far can we take this? What is literate programming at the extreme? I often draw when I need to work out an algorithm in my head. I wish there were a way t
by an_ko 11y ago
How far can we take this? What is literate programming at the extreme?
I often draw when I need to work out an algorithm in my head. I wish there were a way to embed my doodles in code comments. Stuff like circle geometry are hard to explain without dense pixels. I've tried using various literate programming pre-processors that let me write comments in Markdown/HTML and embed whatever, but it makes my UNIX-minimalism-sense freak out, and it's super awkward having to render my source code to HTML and open a web browser to be able to read the comments properly…
- dpeck 11y agoyou might be interested in http://monodraw.helftone.com http://monodraw.helftone.com, lots of diagramming in plain text.
- brudgers 11y agoEmacs org-mode supports a lot of languages [1] and you can mix and match within a file. Howard Abrams literate devops is an interesting example of what org-mode code blocks can do. [2][3] Org-mode also allows embedding images or source blocks in languages like LaTeX that resolve to rendered images. [1]: http://orgmode.org/worg/org-contrib/babel/languages.html http://orgmode.org/worg/org-contrib/babel/languages.html [2]: http://www.howardism.org/ http://www.howardism.org/ [3]: https://www.youtube.com/watch?v=dljNabciEGg https://www.youtube.com/watch?v=dljNabciEGg