All Posts

A shop ledger page, 1899. Every line adds up.
Shipping Bugs to Production: Smaller PRs, Rollbacks and Recovery
Every team ships bugs. Reduce the odds and the damage with smaller pull requests, a rollback-first reflex, feature flags, release checklists and blameless post-incident notes.
4 min read
Stuck on One Bug for Days: A Systematic Debugging Method
A step-by-step method for bugs that resist fixing: reproduce, minimize, form hypotheses, bisect with git, explain it aloud, and ask for help with a well-written question.
4 min read
Getting Productive in a Huge Unfamiliar Codebase
A practical approach to onboarding into a large codebase: find entry points, trace one request end to end, read tests, use git history, ship small PRs and keep notes.
4 min read
Production-Only Bugs: Logging, Staging Parity and Feature Flags
When a bug appears only in production, close the gap with an environment checklist, structured logs with request IDs, safe diagnostics, and canary releases behind flags.
4 min read
Bugs You Cannot Reproduce: A Repeatable Process
A step-by-step process for bugs that only happen sometimes or only for some users: gather evidence, narrow variables, add logging, replay inputs, diff environments and time-box.
4 min read
Ollama vs LM Studio vs llama.cpp vs vLLM: Which One Should You Use?
Ollama, LM Studio, llama.cpp and vLLM solve different problems. Learn what each tool is for and how to choose based on your hardware, workload and users.
5 min read
Sandboxing Local AI Coding Agents: Containers, VMs and Separate Users
A practical way to limit what a local AI coding agent can touch, comparing containers, virtual machines and separate user accounts, with secrets and a Docker example.
5 min read
LLM-First vs NER Pipelines for Document Information Extraction
How to choose between an LLM-first approach and a classic NER pipeline for extracting fields from documents, and how a hybrid design with validation often wins.
5 min read
SQLAlchemy Many-to-Many Relationships in a FastAPI POST Endpoint
Create a post with tags in FastAPI and SQLAlchemy: an association table, loading existing tags, avoiding duplicates, and separate Pydantic input and output schemas.
4 min read
Django to FastAPI: Moving a Team Without Chaos
A pragmatic plan for moving a Django team to FastAPI: when not to migrate, project structure, ORM and Alembic choices, background jobs, and incremental rollout.
4 min read
Async Python for Experienced Developers: CPU-Bound vs IO-Bound Work
A practical guide to choosing asyncio, threads, or multiprocessing in Python, based on whether work is CPU-bound or IO-bound, with GIL basics.
4 min read
Blocking the Event Loop: Finding Latency Spikes in Async Python Pipelines
Find and fix blocking calls that stall an asyncio event loop, using debug mode, to_thread and executors, and why asyncio.sleep(0) hides the problem.
4 min read
ThreadPoolExecutor Memory Blowup When You Submit a Million Futures
Why submitting a huge number of tasks to ThreadPoolExecutor exhausts memory, and how bounded submission, chunking, and as_completed keep usage flat.
4 min read
Asyncio Tasks Silently Garbage Collected: Debugging the Disappearing Task
Why a fire-and-forget asyncio task can vanish mid-execution, how to keep strong references, and how TaskGroup makes lifetimes and exceptions explicit.
4 min read
JWTs Need No Database Lookup? Revocation, Logout, and Why Only Half True
JWTs avoid a lookup on every request only until you need logout or revocation. Learn denylists, token versioning, short TTLs, and introspection tradeoffs.
4 min read
Roll Your Own Auth or Use a Provider? A Solo Developer Decision Guide
A practical guide for solo developers deciding between building authentication themselves and using a provider, including what you must get right either way.
4 min read
Access and Refresh Tokens: Where to Store Them in a Browser App
Decide where to keep access and refresh tokens in a browser app, using HttpOnly SameSite cookies, short-lived access tokens, rotation, and CSRF protection.
4 min read
JWT vs Session Cookies: How to Choose for a Web App
Compare JWTs and server-side session cookies on revocation, scaling, and complexity, and learn which one is the safer default for a typical browser-based web app.
4 min read