4 ms·
Would it make sense to make the code Literate Haskell?
by seanparsons 9y ago
Would it make sense to make the code Literate Haskell?
- aviaviavi 9y agoI'm not familiar with Literate Haskell, what would that involve?
- KirinDave 9y agoIt's just where the majority of the file is a comment instead of a minority.
- piaste 9y agoThank you. Thank you so much. It's an old pet peeve of mine. I cringe inside every time someone starts waxing about "writing your thoughts first, and your code only incidentally" or "it's a completely different paradigm of programming" and other such pieces of useless, discouraging new age fluff.
- elviejo 9y ago"Programs should be written for people to read, and only incidentally for machines to execute." (Structure and Interpretation of Computer Programs" by Abelson and Sussman) The idea is that you write a "Book" and the program is extracted, from the book. Literate Programming Wikipedia: https://en.wikipedia.org/wiki/Literate_programming https://en.wikipedia.org/wiki/Literate_programming A nice talk about it: https://youtu.be/Av0PQDVTP4A https://youtu.be/Av0PQDVTP4A
- elviejo 9y agoA literate blockchain implementation?? YES please!!!
- closeparen 9y agoA Literate Haskell blockchain might just be Peak HN. (Definitely peak HN if it runs in the browser).
- KirinDave 9y agoIs GHCJS using WASM yet, because if so...