in reply to Re^5: Conditional Elimination
in thread Conditional Elimination

Hmmm, the former clearer says to me "ah, he's checking whether the zip code is one of a given list", while the latter tells me he's validating a zipcode. I'd would find it surprising if is_valid_zipcode(10012) returns false, while it doesn't surprise me in your first snippet.

Names are so much easier to get wrong, or be ambiguous.

Replies are listed 'Best First'.
Re^7: Conditional Elimination
by shawnhcorey (Friar) on Aug 31, 2011 at 14:24 UTC

    Names are so much easier to get wrong, or be ambiguous.

    Yes, getting programmers to use meaningful names rather than the first that pops into their head is a problem.