Common Programmer Mistakes
I for my sins code in PHP,Perl,ColdFusion using database MySQL and also write JavaScript, XML and battle with CSS and Ajax etc. Often I’m working on these projects in parallel which gets kind of stressful. Anyway I let my standards slip recently and made the following mistakes and suffered for it.
- Not immediately taking my own backup of the files I was working so I could rollback at any time and as importantly prove whether my changes had or had not caused a regression or bug
- Leaving test files lying about, so I later got confused as to which was the actual version
- In Perl coded the catastrophic error $restart=0 if $cnt=1; (should be if $cnt==1)
- Also in Perl had some problems due to not systematically initializing variables in a subroutine
- To my credit have started to useĀ git for version control