Today I got fed up and started removing all reference to television seasons from our code base. What's a season? We don't know either. But they're deprecated and they were getting in the way of some code I was working on. In the process, I had to delete a test fixture which created a season. This forced me to rewrite one of my tests. A test I had written just a few days ago to alter a feature that was, apparently, untested.
I switched the test to a different fixture and was amazed that all tests passed! Then I looked at the test.
my $expected_xml = $mech->content;
my $xml = $mech->content;
is $xml, $expected_xml, '... and the schedule should return the correct xml';
Um, excuse me? Not only did I write this and check it in, but no one noticed. I clearly need to stop doing drugs at work.
Speaking of drugs, a few years ago, the very right-wing Republican Bush-loving owner of a company I shall not name got mad at me. He came up to my desk and said "I can't believe you did that! Should I send you down for a drug test?"
I turned to him and calmly replied, "That would be a bad idea. If you test me, you should test everyone. I'll probably be the only person who passes that test. And I happen to know for a fact that this includes you."
He stared at me. Sipped his coffee. Stared some more and then quietly turned around and walked away.