· 9 min read
URL Shortener — Part 1: The Whole Thing in 173 Lines of Go
The smallest URL shortener that works end to end — hash-as-code, a map behind a mutex, HTMX instead of a framework — and the exact line where each of those three choices becomes the wrong one.