Recent Representative Line

A single line of code from a large application that somehow manages to provide an almost endless insight into the pain that its maintainers face each day.

May 2011

The Vista Fix

by in Representative Line on

"I was hired on to take things over from a fellow named 'Trent', who was known for writing some stunningly awful code," Michael writes, "I was not only to be tasked with rewriting one of our two main software products into a modern language (compared to the VB6 in which it was currently built), but in the short term I was also tasked with maintaining the older versions. "

"Before I started, I tried out our software (consumer utility stuff, registry cleaning, startup items and the like) and found it was crashing on my system. It turned out that the startup items had an issue for Vista users - Trent had hardcoded all of his directories rather than use environment variables, and so Vista systems would attempt to open a folder that simply did not exist.