|
|
|
|
|
by thr-nrg
1124 days ago
|
|
>* The "includes" problem. Most language require you to include/import/require packages used in a file. These are usually all placed at the start. This means a lot of chapters will start with "here are all the includes we'll need" if you're using a linear format. More complex formats that rearrange the code to generate outputs can do a better job but it's still a little clunky. Real literate programming, rather than rich text comments, can order the code blocks in any order. You can add then at the very end of the book/chapter/section if you feel like it. I did some literary programs about a previous generation of our program. Every new hire reads them and asks me for copies. |
|
And yet Knuth still does it the other way. <http://akkartik.name/post/literate-programming>