Posts
-
Adding Decap CMS to a Hugo Site on Cloudflare Pages
A practical guide to wiring up Decap CMS with a Hugo static site — GitHub backend, Cloudflare Pages Functions for OAuth, and bilingual collections.
-
The Zero-Allocation Secret: Context Pool and smartParams
sync.Pool Context reuse, a [4]string smartParams, an embedded responseWriter, and how to measure.
-
The Segment-Trie Router: Matching Without Regex
A hand-built trie: each request is string splitting plus map lookups, avoiding regex backtracking.
-
Struct-Tag Routing: reflect in Practice
Auto-discovering routes by scanning struct tags with reflect, and failing loud when something's wrong.
-
Why Build a Kitchen-Sink Framework
The trade-offs a framework makes when the focus shifts from one lightweight microservice to consistency across services.
-
Nuxt SSR and Nitro — Handy, but Don't Let It Draw Your Boundaries
Nuxt SSR and Nitro server routes are lovely to use, but convenience isn't architecture, and that layer too easily blends browser-facing aggregation with backend-facing risk.
-
Next.js Server Boundaries: What Stays in the Framework, What Leaves
SSR, SSG, ISR, and RSC each solve a different problem. Sort them out first, then decide what stays in Next and what moves to a standalone BFF.