Best Automatic Code Documenting Package?
Another member from the large Clan of Anonymous Coward asks: "I'd like to know people's experience with automatic code documentation packages, such as DOC++ and Kdoc.It seems as if they all have their advantages and disadvantages, without any being particularly 'the best'. If there's another package out there that supports both C and C++ while creating TexInfo and HTML output, that would be great!" Why limit this to just C++, code needs to be documented regardless of the language it's in.
Literate programming is so interesting because the documented parts of the program do not have to be in the same order as the program itself. Code can be written in whatever order is best for people to understand, and re-ordered automatically when the compiler needs to run the program.
Documentation can be typeset automatically using tools to extract the literate comments from the code. For more information on this, see:
NO!!! It's Emacs!! ;-)
sigs are a waste of space
I code in assembly, and comment nearly every line. It really helps me root out bugs, but I should think that a documentation program (I had never heard of them until now) would cause more trouble than it is worth, for these reasons: 1) If you view the comments without the code, what assurance have you got that the code actually does what the comment says it does? Even if the programmer keeps the documentation up to date, there is always the chance of typos in the code. 2) If the comments can appear in a different order than the actual operation of the program, might that not cause confusion as to the actual control flow of the code?
--Mr_Machine_Code