@
Luc Lieber
It depends on your work environment and any documentation requirements. I am of the school that the further away from the code that the documentation is, the less maintained it is.
There exist numerous systems to handle it, including those that allow you to modify documentation and related code at the same time (rare), to those that extract documentation from source code (common), to dedicated documentation writing personnel (sadly common), to just telling programmers to update a specific documentation database (also sadly common).
@
Stewbond
You left out the "Modified By" and "Last Modified" and "Project Name" and "Satisfies Requirement" fields.
That kind of boilerplate nonsense is common in the industry, alas. Management puts it there to encourage stupid programmers to properly document their code and how they modify the system. What usually happens is that every function in a module has the exact same header from someone who quit years ago.
If you have to put up with that kind of stuff, perhaps a demonstration of the negative impact of that kind of verbiage on compile time and maintenance.
This does what you think it does. |
Elephant. I think that it returns whichever value is greater than a global variable somewhere. I think that the GNU folks ought to be ashamed of that one.
Here is an example of one of my comments in a very simple project:
http://www.cplusplus.com/forum/lounge/74394/#msg402102
For more advance projects, the commentary will be a little better organized, but otherwise eschew useless information.
I don't claim my method is superior to any other, but I personally like it. :O)