Why "Works on My Machine" Happens (And How to Fix It)
Your code passes locally and breaks in CI or production. Here are the 6 most common 'works on my machine' traps — and the quick fix for each.

Practical, diagram-first explanations you can read over coffee. 97 posts and counting.
Newest postWe say AI 'learns', but it doesn't learn like a person. Here is what actually happens inside a neural network — nodes, weights, training, and why chat isn't learning.
Your code passes locally and breaks in CI or production. Here are the 6 most common 'works on my machine' traps — and the quick fix for each.

A race condition happens when two operations race to update the same state and the slower one wins. Learn how to spot them and fix them in React and backends.

AI makes the first 80% of a product wildly faster and cheaper—and can quietly make the last 20% slower if nobody owns the design. Here is the honest trade-off.

An MCP server is just a small program that lists tools and runs them when an AI asks. Build one in TypeScript in three steps and plug it into your editor.

MCP (Model Context Protocol) is a standard plug between AI apps and your tools. Learn how clients, servers, and tools work—and how to explain it in an interview.

AsyncLocalStorage in Node.js gives each request its own data that follows it through every await. Learn how it works and how Next.js cookies() uses it.

A Next.js memory leak where one setTimeout per SSR render kept finished requests in memory. How it was spotted, measured with heap snapshots, and fixed.

A database index works like the index at the back of a book. Learn how indexes make queries fast, what they cost, and how to explain them in an interview.

Short posts on one theme, meant to be read in order. Each part stands alone, and together they build the full picture.
Get new posts in your inbox
One email when a new post is out: short, diagram-first explanations of JavaScript, React and Next.js. No spam, unsubscribe any time.