A friend of mine recently pasted the following code to me on Skype, asking me how I would respond if I saw it at a company on a project I was manager of. I said I'd check the SVN checkin logs to find out which cubical it came from, and then I'd take everything in the cubical and drop it in the nearest dumpster.
[CODE]private static bool InvertBool(bool org)
{
bool returnValue = false;
if (org)
{
returnValue = false;
}
if (!org)
{
returnValue = true;
}
return returnValue;
}[/CODE]