I believe a surer route to good programming is focusing on avoiding mistakes rather than focusing on doing things ‘right’. In this episode, I give four tips for adding a modicum of rigor to your programming. First, proof-read all changes before committing. Second, execute every line of code. Third, double-check you’re in the right file. Fourth, double-check your docs are for the right version.
For anyone interested in the topic, there’s a part II continuation video linked to on the same website.