News for hackers. Stuff that matters.
Re:Applying “make invalid states unrepresentable” by sathorn on Monday October 05, 2020 @12:23PM (#24689164)
This might make sense for a transport schema because you can receive messages from the past or the future but it does not translate to internal program state or database schemas where this is not the case.

Making invalid states unrepresentable is basically the process of taking human-checked invariants and turning them into type-checked invariants. This reduces the likelihood of bugs and guides humans to use the system correctly.

There are no comments on this comment yet.