Opinion: When does NULL make sense for database columns
One thing that seems to get developers hot under the collar is whether their database columns should be nullable or not.
As mentioned in earlier posts, some try to just have everything NOT NULL to avoid dealing with the issue. But that can lead to the use of magic values where you store a value that means “there is no value” just to avoid the value being NULL. The problem with magic values is that every layer of code needs to know what’s happening. These values inevitably leak into the outside world.
2018-06-05



