I'd strongly disagree here - for the most part, if you name boolean
variables appropriately, the version without the "== false" or
"== true" ends up being more naturally readable.
That is true in many cases and depends on what your doing. However, many
times you use the same flag for both true and false tests depending on how
you access it in your methods. In that case, the explicit test can help
readability and remove "not" testing which can be confusing especially when
combined with other & or | testing in the same if block.
if ( !IsNum ) //Can be harder to understand espcially combined with other
tests, or when up all night
or
if ( IsNum == false ) //Very plain and explicit.
if (passwordCorrect = true)
which would be rather nasty and suggests using
The complier (thankfully) gives you a little warning (underline) on this.
Obviously, in the end, everyone has their own style and views on what makes
sense to them. Wondrous diversity.
Happy Holidays!