Along the same lines of modular reusable code design, the one general comment that I would make is that when writing code, try to make it as general as possible. Think beyond the immediate project, and how you may need to use similar code in the future. A couple of minor allowances in your current code can make it much easier to reuse in the future.
The one mistake that I see most often is that inexperienced programmers love to hard code things (such as loop parameters) using literals, rather than using variables. It's usually because they are in a hurry, and want to get things running. A week later when they have to go back and change the code, it makes for lot of rewriting, and it costs them far more time than the little bit they save the first time around.
The one mistake that I see most often is that inexperienced programmers love to hard code things (such as loop parameters) using literals, rather than using variables. It's usually because they are in a hurry, and want to get things running. A week later when they have to go back and change the code, it makes for lot of rewriting, and it costs them far more time than the little bit they save the first time around.