Laws · Tech and product

Postel's law

Be strict in what you send and forgiving in what you accept from others.

What you sendFollow the specExact formatNo surprisesWhat you acceptOdd spacingMissing fieldsOlder versionsvs

In real life

A good postman delivers a letter with a smudged postcode. But when you post one, you write the address clearly.

In data and work

Data pipelines that quietly accept messy input keep running, but the mess spreads downstream. Strict output plus flagged, logged exceptions on input works better.

Watch out

Tolerating other people's mistakes can lock those mistakes in as the real standard, and can open security holes.

Jon Postel wrote the principle into the 1979 IPv4 specification and the early TCP specification, RFC 761, in 1980. It is also called the robustness principle. In 2023 RFC 9413 argued it can reduce robustness.

Source: Wikipedia

Related

YoursystemWhat the docssayColumn orderError wordingResponse timeOld bugs
Hyrum's lawWith enough users, every visible behaviour of a system will be relied on by someone, whatever the documentation promised.
Simple and workingAdd one piece, testAdd another, testComplex and working
Gall's lawA complex system that works grew from a simple system that worked. One designed complex from scratch usually fails.
1 step1%10 steps10%50 steps39%100 steps63%300 steps95%Chance something fails if each step fails 1% of thetime
Murphy's lawAnything that can go wrong will go wrong eventually -- so plan for it.