in reply to What is your practice for code documentation?
To achieve a) it isn't enough to just extract comments (handcrafted or not) or generate them, both provide no new information and should be visible in the code itself (if they are not hidden by bad coding). Arnon hits the nail on the head here. There might be some use for diagrams showing the call or object hierarchies but I don't have much experience there so don't know.
b) is impossible in the general case (at least without true artificial intelligence). One could argue that is what is done with the POD-pages, but there you need to write the docs all by yourself, the only difference to separate documentation is that with POD the information is closer to the code.
Btw, I don't see refactoring as a substitute for documentation. No code is that readable that a comment can't tell you faster whether or what part of that code you need to read.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is your practice for code documentation?
by chromatic (Archbishop) on Jun 25, 2008 at 20:43 UTC | |
by jethro (Monsignor) on Jun 26, 2008 at 00:13 UTC |