1)Don’t setup a computer to develop with, in one of the busiest rooms in the house (dining room next to kitchen in my case) Coding is like counting numbers. You get interrupted, you start from scratch.
2) Write down plenty of notes and sketches to visualize what your code does, and better understand the logic you are implementing, and any flaws in it.
3) Try to avoid “spaghetti code”. (learned that term recently, as it described my coding style perfectly)
4)Don’t use logic statements in code unless you’ve mapped out every possible value or range of values you feed them, and how they will respond to those values. Don’t, or you are in for a whole world of pain.
5)Don’t try to code or debug while tired.
6) If you feel like you need a nap, your brain is no good so take a darn power nap.
7)If you comment out a line to see if something will change, don’t forget to uncomment it if nothing changes. (chances are you will break something else, forget you commented that line, and not realize why)
8) Block THE WHOLE DARN INTERNET except for the scripting reference manual, while you are coding. Debugging is painful and your brain will do the best it can to procrastinate instead.
If there is another comprehensive list of dos and don’ts I’d love to read it, but these are my own gems learning from my own stupidity.
Anyway I hope this helps someone.