I've been programming in C-derived languages for a couple of decades now. Somewhere along the line, I decided that I no longer wanted to write:
if (var) // in C
if ($var) # in Perl
if (var != 0)
if (defined $var and $var ne '')
I like my
ifs to make sense when read aloud:
if (is_it_happening) ... if (number_of_sheep != 0) ... if (pointer_to_something != NULL) ...