Throwback Thursday: And thanks for the hard work!

Freshly hired pilot fish at a Canadian office of this company gets his first assignment: Write an agent that will handle failover for a high-availability cluster controller. Got that?

"It's basically a script to automate failover of a disk array from one server to another," explains fish.

"I write the basic code in a day or two, only to find that although it works most of the time, as with all complex applications, the documentation doesn't quite match what actually happens."

That's no big deal when it's under human control, but it's a disaster for something that's supposed to be fully automated. So fish takes his quick-and-dirty code and sets to work making it bombproof.

He spends six weeks writing, testing and rewriting error detection to handle odd conditions that might happen during the failover. He even writes parsers for the output of the controller's status command, because the error codes returned by the standard software are incomplete.

"Finally, it works to my satisfaction and, more important, to that of the project manager and the customer," fish says. "The code goes live at the customer, and is also e-mailed to the American office along with all the documentation of why everything was done the way it was."

Fast-forward a few months: The American office officially releases a version of fish's code for all its customers to use, and fish is eager to take a look at the final cut.

And he's amazed when he sees it -- because it's nothing more than the basic quick-and-dirty code fish wrote in the first few days.

No error checking. No output parser. None of the refinements it took fish six weeks to discover and document.

"But because it's from the American office, not the international subsidiary I work at, it's the official version, and it's what will be installed at all future customer sites," sighs fish. "For all I know, it will also be the default at the original customer.

"I really pity any of the customers that have to use it, though, because from experience I know that even in the most basic environment, it won't work."

No need to bombproof it for Sharky. Just send me a quick-and-dirty version of your true tale of IT life at sharky@computerworld.com -- I'll do error checking and file off the identifying marks. You can also comment on today's tale at Sharky's Google+ community, and read thousands of great old tales like this one from the Sharkives.

Get Sharky's outtakes from the IT Theater of the Absurd delivered directly to your Inbox. Subscribe now to the Daily Shark Newsletter.

5 ways to make Windows 10 act like Windows 7
  
Shop Tech Products at Amazon