News for hackers. Stuff that matters.
Re:Applying “make invalid states unrepresentable” by nemetroid on Monday October 05, 2020 @09:39AM (#24687660)
I feel that this advice is almost opposite to that given in the article. By making all fields optional, your data model no longer helps in making invalid states unrepresentable.
Re:Applying “make invalid states unrepresentable” by H8crilA on Monday October 05, 2020 @10:01AM (#24687814)
Exactly! Because today's invalid states are commonplace in the future.