WeSearch

Illegal vs. Unwanted States

·6 min read · 0 reactions · 0 comments · 3 views
#software design#system reliability#formal methods#data modeling#safety properties
Illegal vs. Unwanted States
⚡ TL;DR · AI summary

The article distinguishes between illegal states, which a system must never enter, and unwanted states, which are permissible temporarily but should not persist. Unwanted states may arise due to external inputs or intentional design choices, such as overbooking flights or scheduling conflicting events. Systems must be able to represent and manage unwanted states to maintain flexibility and prevent them from becoming illegal states.

Key facts
Original article
Buttondown
Read full at Buttondown →
Opening excerpt (first ~120 words) tap to expand

April 28, 2026 Illegal vs Unwanted States Keep Unwanted States Representable An illegal state is a state we never want our system to be in. An unwanted state is a state we don't want to stay in. Many states that we wish were illegal are actually unwanted. Considering a calendaring software which stores calendar events as {user: {events: [event]}}, where each event has a start and end time. This allows one person to attend two events at the same time. We might consider this illegal and replace the data type with {user: {time: optional event}} which makes this impossible. However, a scheduling conflict isn't illegal, only unwanted! It is possible for a person to sign up for two overlapping events.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Buttondown.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Buttondown