I keep seeing code that does checks like this
if (IsGood == false) { DoSomething(); }
or this
if (IsGood == true) { D
For some reason I've always liked
if (IsGood)
more than
if (!IsBad)
and that's why I kind of like Ruby's unless (but it's a little too easy to abuse):
unless (IsBad)
and even more if used like this:
raise InvalidColor unless AllowedColors.include?(color)