Skip to content
All writing

$ blog / engineering

Engineering

Lessons from what I run into at work, learned from and written down.

Series
Series · 9 partsOct 2026

Docs in the AI Era: Keep It Simple

AI made docs easy to write, but they still go stale. Write for the right reader, keep strict rules for machines, and keep docs alive with three reminders.

Series · 19 partsOct 2026

A Cache Is a Chain, Not a Box

HTML left the CDN edge 17 times more often than images. Chasing why, from one HTTP request to a stale-while-revalidate loop behind the load balancer.

Series · 8 partsSep 2026

Engineering in the AI Era: Same Work, More Return

How one engineer doubled output with AI, then spent the saved time on life: value, judgment, advice for newcomers, and a system for yourself.

Series · 9 partsSep 2026

Designing Agents and Agent Loops: Split FR and NFR First

An agent is one more system you design: script what you can, leave only real judgment to the LLM, then graduate repeated judgments into scripts.

Series · 4 partsSep 2026

Image Format Benchmark: WebP Wins

75 production images, 6,075 automated runs: why WebP beat AVIF for serving, and how to ship it.

Series · 13 partsSep 2026

Remote-Controlling Chrome in Containers

Splitting Chrome from an API pod for autoscaling, and every networking trap along the way.

Series · 8 partsSep 2026

Seven Blind Spots Behind a JWT Audit

A friend's JWT auth worked. Signatures verified. But five security gaps sat wide open. These notes are the result of that audit.

Series · 12 partsAug 2026

From 19 Goroutines to Exit 137

19 goroutines, one shared browser, exit 137. A postmortem tracing Go concurrency, GMP scheduling, memory layers, and the semaphore fix that stopped the bleeding.

Series · 10 partsAug 2026

A Golang Upgrade's Chain Reaction

An automated dependency update bumped the Golang version and cascaded through Docker, Alpine, and libvips, teaching nine lessons about version coupling, contaminated test oracles, and silent security gaps.

Series · 10 partsJul 2026

Reaching a Remote DB From Your Laptop

One mental model for reaching a remote database from your laptop: the five coordinates, the tunnel, docker packaging, and one-shot vs REPL queries.

Series · 7 partsJul 2026

PKI & TLS Behind a Migration Ticket

A one-line migration ticket hid two opposite-facing TLS setups. Untangling the PKI behind it — the certificates, keys, and CAs — from inbound one-way TLS to outbound mTLS to Kafka.

Series · 8 partsJul 2026

Crop, Resize, Fill: Image Processing

A GIF crop bug that rendered garbage taught how images and animation really work — format trade-offs, libvips page-strips, and one load path for stills and animation.

Series · 10 partsJul 2026

One Operation, Many Engines

One operation, three engines: query ClickHouse, Spark, and MongoDB by thinking in intent instead of memorizing three sets of syntax.

Series · 5 partsJul 2026

Thread-Safe Login, the Hard Way

A production race condition taught four lessons about locks, atomicity, and safe publication.

↑↓ navigate ↵ open esc close