think before you codeThis tip submitted by Timofei Gerasimov on 2004-12-29 00:00:00. It has been viewed 48601 times.
Rating of 5.4 with 316 votes
Have the structure of the program very clear in your mind before you ever write a single line of code. If making diagrams or outlines using paper and pencil helps you to do this, go right ahead.
This is especially critical if you are writing non-trivial programs, as in more than 200-300 lines. If you have a solid plan before you start to code, you are much less likely to write useless code. It's not very much fun to get halfway through your program and then realize that there's a major structural flaw.
Help your fellow programmers! Add a tip!