Types at the edges
Parse untrusted input once, at the boundary, into a type that cannot be wrong. Everything inside gets simpler.
tech, developers, and the code underneath
102 pieces tagged engineering,
from February 4, 2025 to November 20, 2026.
Parse untrusted input once, at the boundary, into a type that cannot be wrong. Everything inside gets simpler.
A document that produces no change is a ritual. Here is what makes the difference.
The joke is that it is hard. The useful version is that there are four strategies and picking the wrong one is the actual problem.
Wall time goes backwards, monotonic time does not measure what you think, and both of them are lying about the other machine.
It is not superstition about December. It is an admission about who is available and how fast you can recover.
Every system has settings that were never written down, only typed once. They are the reason staging passes and production does not.
Who did what, when, and to what. Getting it right is mostly about deciding it is a product feature rather than a log.
Every codebase has one. Here is how it happens and the four ways out, in order of cost.
Every task has a parent that waits for it. That one rule eliminates leaks, orphans, and most cancellation bugs.
Adding a replica looks like free read capacity. It is free right up until replication lag becomes a correctness bug.
Error names are read at the worst possible moment by someone with no context. Most of them are useless.
A backup is a hypothesis. A restore is evidence. Most organisations have only ever tested the hypothesis.