▲ | nlitened 16 hours ago | ||||||||||||||||
> you need a concept of absence that's different from null Could you give an example? Null _is_ absence, the way I see it | |||||||||||||||||
▲ | Lvl999Noob 14 hours ago | parent [-] | ||||||||||||||||
What they are saying is that the field is always present in the domain model but we don't have the information to backfill it. For example, say you have a customers table. Originally, it just stored their name and internal ID. But now you are adding in their government ID as well. Except that you already have thousands of customers and you don't have their government ID. So you either make the column nullable and slowly backfill it over time. Or you find some default value which isn't null but the code understands it to still be empty. And again, you slowly backfill over time. | |||||||||||||||||
|