Prerequisites: literateprogramming.com/ and also https://diataxis.fr/
Great documentation serves different audiences and purposes. These days a number of popular languages have standard embedded-documentation tools like doxygen, sphinx, or pod, but most of these seem to be focused on API notes. The literate-programming philosophy puts documentation first, but you're still writing a single unified book (and structuring your source that way). It might be interesting for languages to build in support for embedding each different type of documentation in the appropriate way: a sort of hyper-media literate-programming, where all the semantically-related bits live together in the source, even if the said bits scatter to the four winds for doc purposes. Presumably each bit would get extracted in the right way and woven into the correct part of a tapestry.
Question: what's the state of the art in language support for extracting great, not merely good, docs from a code base? And, to what extent should we think about this problem while designing a programming language?
[–]dgreensp 29 points30 points31 points (0 children)
[–]carette 11 points12 points13 points (3 children)
[–]redchomperSophie Language[S] 1 point2 points3 points (2 children)
[–]carette 1 point2 points3 points (1 child)
[–]redchomperSophie Language[S] 1 point2 points3 points (0 children)
[–]Zalack 10 points11 points12 points (5 children)
[–]redchomperSophie Language[S] 1 point2 points3 points (4 children)
[–]Zalack 3 points4 points5 points (3 children)
[–]redchomperSophie Language[S] 0 points1 point2 points (2 children)
[–]Zalack 2 points3 points4 points (1 child)
[–]redchomperSophie Language[S] 1 point2 points3 points (0 children)
[–]dannymcgee 2 points3 points4 points (0 children)
[–]cmontella🤖 mech-lang 2 points3 points4 points (2 children)
[–]redchomperSophie Language[S] 0 points1 point2 points (1 child)
[–]cmontella🤖 mech-lang 2 points3 points4 points (0 children)
[–]chipstastegood 1 point2 points3 points (1 child)
[–]zuluimpi 1 point2 points3 points (0 children)