May 11, 2021
If you follow a good design process, you can turn the design document into the comments and function header comments.
There is "Literate Programming" where you use TeX or another similar tool to do the design document, then go back and put the code. The source code is the TeX file.
https://en.wikipedia.org/wiki/Donald_Knuth#Literate_programming