Squashing bugs

The process of converting the existing galleries to the new website is going pretty well. I’ve made a few visual simplifications which make for cleaner pages. I’ve also started paying a bit more attention to testing than perhaps I did the last time around. I was a professional software developer for a good 15 years or so, and you’d think I’d be more disciplined than to allow such bugs to remain in my code, but the truth is that all developers avoid work wherever possible. If they can re-use something they wrote in the past rather than re-writing something, they will. As a result, code gets written faster. As a consequence though, errors can be repeated, tweaks for code that is being re-purposed can be overlooked. In the process of moving and adjusting the code to the new site, I’m spotting areas where I took shortcuts and inadvertently allowed bugs to creep into the code, primarily into the way I processed the results of certain SQL queries. Nothing so serious as to break the site – after all, nobody ever noticed these bugs, but I’m taking the opportunity to correct them now. After all, when I do properly begin work on a proper replacement for the galleries, much of it will no doubt be based on this existing code so I might as well make sure it’s right now.