During code review I discovered many places of our C# code that looks like this:
if(IsValid()) { return true; } else { return false; }
I even sometimes see this some of the legacy code I maintain:
bool retValue; if (IsValid()) { retValue = true; } else { retValue = false; } return retValue;
Are some programmers paid by the character?