Recent
The Elm Architecture: a loop that fits in your head
·14 mins
Model, Update, View. Three pieces, one loop, zero surprises. We explain The Elm Architecture from scratch with side-by-side examples in Rust and Scala, trace where the pattern came from, why it keeps showing up in TUIs and functional codebases, and when it stops being the right tool.
The Curry-Howard Correspondence: when types become proofs
·5 mins
Every well-typed program is a proof. Every type is a proposition. This is not a metaphor; it is a mathematical theorem discovered in the 1930s that explains why making invalid states unrepresentable actually works.
Making Invalid States Unrepresentable 3: Real bugs from representable nonsense
·6 mins
Null references, UI loading spinners that show errors and data simultaneously, payments that are captured and voided at the same time. These are not hypotheticals. They are the direct consequence of types that lie about the domain.
Making Invalid States Unrepresentable 2: The algebra behind your types
·7 mins
Types are called algebraic because they obey arithmetic. Product types multiply, sum types add. Understanding this arithmetic explains why an enum with 5 variants is infinitely more precise than 4 boolean flags.
Making Invalid States Unrepresentable 1: Why boolean flags are bugs in disguise
·5 mins
A traffic light that is red and green at the same time. A user who is logged in and logged out simultaneously. Boolean flags make these absurd states perfectly representable, and that is the problem.