Explainers
Short developer explainers on TypeScript, Go and Kubernetes. Every video comes with a full transcript and the sources it was checked against.
-
Your liveness probe is killing the pod
Your pod is up. Then it isn't. Then CrashLoopBackOff. A liveness probe knocks every ten seconds. After three failures, the kubelet kills the container.
-
Kubernetes Probes: Why Your Pod Hits CrashLoopBackOff
Your pod is up. Then it isn't. Then CrashLoopBackOff. This short explainer covers Kubernetes liveness, readiness and startup probes, and why a badly…
-
TypeScript infer reads your route string
TypeScript can pull a type out of a string. That is infer. IsParam asks whether a string starts with a colon.
-
TypeScript infer: The Compiler Reads Your String
TypeScript can pull a type out of another type. That is infer. This short explainer starts with Unwrap, which looks inside a Promise of string and returns…
-
Go embed: one binary in prod, live files in dev
embed is easy in prod. Dev is where it hurts. go colon embed bakes your files into the binary at build time. Great for shipping.
-
Go embed: Prod Binary, Dev Live Files
Go's embed package makes production easy — one binary with assets inside. Development hurts when every CSS or template change needs a rebuild.
-
Your Go counter is lying to you
A thousand gophers add one to a counter. They came back with six hundred seventy-five. Two of them read the same number at once, and one update vanished.
-
Go Channels vs Mutexes: One Data Race, Two Fixes
I sent a thousand gophers to add one to a counter. They came back with six hundred seventy-five.
-
Return errors as data in TypeScript
Return errors as data in TypeScript. A pure function returns the same output for the same input and has no side effects.
-
TypeScript: Pure Functions, Result Objects, No Exceptions
A pure function returns the same output for the same input and has no side effects. A function that throws breaks that: it has a second, invisible exit, and…
-
Switch or lookup object in TypeScript?
Two TypeScript habits for stricter checks: a lookup object as an alternative to switch, and inferring from keys.
-
TypeScript: Switch or Lookup Object? Plus Infer from Keys
Two TypeScript habits for stricter checks. First, a lookup object as an alternative to a switch statement: end the object with satisfies Record of Status and…
-
Stricter TypeScript types, zero runtime cost
Three TypeScript tools that make your types stricter, and cost nothing at runtime: as const, satisfies, and branded types. As const keeps the exact value.
-
TypeScript as const, satisfies and Branded Types: Zero Runtime Cost
Stricter types at zero runtime cost. This short explainer covers three TypeScript tools that exist only at compile time: as const (TypeScript 3.4), which…
-
One TypeScript line that writes your types
One line of TypeScript that writes your types for you. Type Copy of T is an object where, for every K in keyof T, the value is T of K. Same keys, same types.
-
TypeScript Mapped Types: Types That Write Types
One line of TypeScript that writes your types for you: type Copy of T = { [K in keyof T]: T[K] }.
-
Zod: Parse, Don't Validate (Dates That Aren't Dates, Numbers That Are Strings)
TypeScript types do not exist at runtime, so `JSON.parse(body) as Order` checks nothing. This short explainer shows three failures that type-check (a date…
-
TypeScript 7.1 Beta: Typed SQL Files with Content Mappers (Reylo)
TypeScript 7.1 beta content mappers: import a .sql file and get typed parameters and rows. This cut covers Reylo (by Colin McDonnell, creator of Zod) — a…

















