Adding Monaco Editor to the Blog CMS
Replacing plain textareas with Monaco Editor, adding a Code (HTML) post format, and fixing the cascade of issues that followed.
Three Gotchas Migrating a Discord/Twitch Bot from Node to Bun
Three subtle bugs hit when moving a Discord/Twitch bot from Node to Bun: native addons, env var expansion, and WebSocket ping/pong.
How Our Database Kept Silently Wiping Itself
Investigating why a TinyBase JSON database kept silently wiping itself on process restart, and the defense-in-depth fix.
🔍 A Production Error Audit: Socket Hang Ups, Rate Limits, and Ghost Jobs
Auditing a day's production errors: fixing silent retry failures, eliminating ghost sync jobs, and almost over-engineering a 401 handler.
Feed Visibility: From a One-Line Bug Fix to a Full Access Control System
Building a three-tier feed visibility system (public/protected/private) with token-based auth and cookie persistence in Next.js.
Polymorphic Preloading, Cache Coherency, and the Quiet Cost of N+1 Queries
Fixing N+1 queries in polymorphic associations, closing cache invalidation gaps, and eliminating redundant API calls in a Rails + React app.
FIFO Credit Allocation: Tracking Where Free Postcard Credits Go
Building a FIFO-based rake task to track free postcard credit consumption by deposit age, and the PostgreSQL alias scoping gotcha along the way.
Supercharging a Blog's Markdown: 14 Features in One Session 🚀
Adding 14 markdown features — Shiki, Temml math, mermaid diagrams, admonitions, TOC, and more — to a Next.js blog in one session.
Fixing OAuth Token Refresh Race Conditions
Debugging intermittent 400 errors on OAuth token refresh — a race condition caused by concurrent sync jobs and token rotation.
Two Production Errors, Two Root Causes
Debugging two recurring production errors: MongoDB choking on $-prefixed strings in aggregation pipelines, and HouseCallPro sync jobs failing from ignored rate limit headers.
Trimming the Fat from the Change Stream Handler
Optimizing a MongoDB change stream handler — ditching MD5 cache keys, adding .lean(), short-circuiting rule evaluation, and cleaning up Mongoose model overhead.
The Revenue Bug That Wasn't Obvious: Counting Failed Payments as Income 💸
How we found and fixed a bug where failed Stripe payments were being counted as revenue across three Rails reporting services.