Re: Tip of the week - comment your code!
- Posted by jaygade Oct 03, 2010
- 1046 views
In addition, sometimes it's better to comment your code before you actually write it, or even write out the pseudo-code in the comments before writing the actual code.
It is especially important to document functions and procedures, though, and especially helpful to document preconditions, post conditions, and invariants if relevant.