Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Wednesday October 16, 2002
09:36 AM

Things I hate

[ #8405 ]
There are many programming practices that I dislike, but this one is in my personal top-ten of horrible things I don't want to discover in source code I have to maintain :

Boolean values coded as strings (for example, 'Y' and 'N') -- so that they always evaluate to true in boolean context.

And not only because it's ugly, but also because it's almost impossible to rewrite properly. This remark being true for Perl, C, and all other languages that haven't a built-in boolean type.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.