5 ms·
Making Illegal States Unrepresentable
- PaulHoule 3y agoIt is a good idea in SQL
- CodesInChaos 3y agoThe maximum age constraint on the birthdate is problematic, since it becomes more restrictive over time. So if you store a user and their birthdate, you won't be able to load them again if they crossed the threshold in the mean time. I'd just pick some reasonable cutoff (say 1907) and keep it at that value forever.
- seeknotfind 3y agoToday our computers have issues because time overflows. Tomorrow, advanced medical technology extending human life may be available, but will constraints in software will force people to be legally reborn into new identities?
- 9659 3y ago1983 called. Ada would like a word.