Blogging about the YouBastardException reminded of another funny thing that was added to that Intranet application. After a code review I had a discussion with one of the developers on his "dark side coding practices". To annoy me, after this discussion he put in the following line of code:
bool theDarkSideRules = true;
Notice how it conforms nicely to the MSDN capitalization guidelines. But, this was the only line in which this local variable was used. So it gave a nice The variable 'theDarkSideRules' is assigned but its value is never used compiler warning every time the assembly was compiled.
This line is still present in the code to this day 😉
Please post a comment or a trackback if you have any nice examples of inside coding jokes.