Hacker News new | comments | show | ask | jobs | submit login

If I understand it correctly you generate the program from that file by removing all the non-code text, right?

This is very well documented , but not "actually" literal programming. It's a losing battle over this definition but since you said actually I'll go for it one last time :p

In literal programming, the order of the explanation dictates the flow of text. Conversely, well documented source code follows the order of the program.

The literate programming paradigm, as conceived by Knuth, represents a move away from writing programs in the manner and order imposed by the computer, and instead enables programmers to develop programs in the order demanded by the logic and flow of their thoughts.[2] Literate programs are written as an uninterrupted exposition of logic in an ordinary human language, much like the text of an essay, in which macros are included to hide abstractions and traditional source code.

- https://en.m.wikipedia.org/wiki/Literate_programming

Literate programming in this specific case would include a big overview of the entire file somewhere with references to each section. These would then be pulled in and included at compile time.




> In literal (sic) programming, the order of the explanation dictates the flow of text. Conversely, well documented source code follows the order of the program.

org-mode supports noweb-like chunks, so you can do "real, Knuth-like" literate programming. It just makes little sense in the case of configuration files because they're just a collection of mostly-independent bits.


Since configuration in Emacs mostly is code, imho it makes a lot of sense.


It's code, but most of it is simply (use-package ivy ...) or (setq tab-width 3.14), where's the value in chunks? The typical Emacs configuration doesn't contain data structure definitions, algorithm implementations, or error handling that can be more appropriately reorganized for a reader.


Thanks for sharing your opinion, but your premise is flawed. Through org-mode litaerate programming is indeed not only possible, but a great option.

If you're interested in that area I encourage you to give it a try.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: