Tag Info

New answers tagged

1

Null is evil. However, the lack of a null can be a greater evil. The problem is that in the real world you often have a situation where you do not have data. Your example of the version without nulls can still blow up--either you made a logic mistake and forgot to check for Goodman or perhaps Goodman got married between when you checked and when you ...


-3

NULL is a problem because it conceptually represents data that may or may not exist. Data that may not exist is assumed not to exist (because assuming the opposite crashes your program so you always have to assume the value could be NULL). Data that doesn't exist is not worth reasoning about, and is not very useful. If your program is mostly not useful, you ...



Top 50 recent answers are included