Quote:
Originally Posted by wireties
Express your solution in a diagram or notation of some sort (UML or simple flow diagrams and so on) first. When you start coding, comment first and fill in the code afterwards. If your style is good, the code is readable and the comments explain the algorithm. Little else is really necessary no matter the audience.
|
+1 on this. Write your comments first to express your algorithm, then fill in the code. Saves effort.