Tuesday, August 08 2006: Pet Peeven
This just bugs the hell out of me, especially when I see it committed by
someone who has been programming for "15 years" and is writing a book on
how one ought to write code.
If BooleanReturningFunction() = True Then
' Execute some shite code which more than likely includes:
Exit Sub
End If
I'm not sure why, but I've never seen these same people write the following
snippets, even though they are both exactly as redundantly ignorant as the
first example.
If (integer_variable = 6) = True Then
' Execute some more shite code
End If
or
If (BooleanReturningFunction() = True) = True Then
' Do the world a favor by getting a job at Starbuck's
' instead of writing code, you assmole
End If