Difference between revisions of "Cpp Coding Standards/CODEDOC/ClearBehave"
From Apache OpenOffice Wiki
m (Cpp Coding Standards/Code Documentation/ClearBehave moved to Cpp Coding Standards/CODEDOC/ClearBehave: consistency) |
|
(No difference)
|
Revision as of 13:55, 22 May 2007
Writing documentation is a tedious and - for many – unpleasant task and it takes time. To have more time for the important comments, leave out the unnecessary. A good function name often can spare many lines of documentation.
On the other hand some facts about each function have to be unambiguously clear: Preconditions, postconditions, possibly invariants, and the behaviour in error cases. If any of these stay unclear, documentation is necessary.