Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: "undef" is not NULL and what to do about it

by Rhandom (Curate)
on Feb 21, 2013 at 15:47 UTC ( #1019967=note: print w/ replies, xml ) Need Help??


in reply to Re: "undef" is not NULL and what to do about it
in thread "undef" is not NULL and what to do about it

For a brief time 10 years ago I though like you do in this post. However after working with foreign keys and multi-key unique keys in well managed schemas, nulls have become a very welcome tool for helping to model relations via database constraints that could not be done without nulls.

I share in your lack of enthusiasm for various oracle behaviors.

Excluding NULL or undef values under a well intentioned blanket statement is fine, but understand you are removing valuable tools from yourself - cutting down on logical variations sure - but you are removing tools from your toolbox. Just because you haven't yet discovered how they are useful to other people doesn't make them less useful.

my @a=qw(random brilliant braindead); print $a[rand(@a)];


Comment on Re^2: "undef" is not NULL and what to do about it

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-12-22 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (112 votes), past polls