Scratchpad

a small engineering log

A static site generator in 200 lines

2026-06-27 · 4 min read

Templates, a content map and a hash of file mtimes is all you need.

Notes on Postgres query planning

2026-08-07 · 6 min read

Why a parallel seq scan beats a nested loop on some tables, and how to read EXPLAIN without crying.

Keeping shell scripts honest

2026-05-10 · 5 min read

set -euo pipefail, traps, and the three bugs I keep making anyway.