On reviewing a colleagues’ code recently I suggested he might want to change the name of his SortAndDelete sub to something that more accurately described what it did.
My proposal was FuckEverythingRightUp!
His response? That was meant to be a one time use system, the user had reloaded it with data of a very different structure.
My reply? if it was one time use then he should have run it and given the user the results only. Sods Law dictates that everything you give to your users(/customers) will be brutally abused and destroyed with no mercy.
He then pointed out he was trying to fix something I wrote a while ago that was initially quick and dirty fix, but was at that moment just dirty, and broken.
I asked what the comments said (comments are vital to quality code). He confirmed there was a
‘// sm 2010 quick and dirty bodge
comment, which I believe is better than a get out of gaol (jail) free card.
He also pointed out another of my comments from a while ago on a different system, he was now handholding:
‘// sm 2009 please god don’t let this bag of shite still be live in 2011.
Like I said comments are vital to back covering.
What’s the funniest, most inappropriate comment you have seen/written?
(I’m not sure if I should mention the dictionary object one of my colleagues used, using correct reddick tlp:
Dim dicHead as Scripting.Dictionary)