
React's Virtual DOM vs. the Real DOM
React's virtual DOM describes the UI before reconciliation updates the browser DOM. I explain the costs, list keys and why performance still needs measuring.
Articles
My guides are the practical part of this archive: working explanations for a specific web development problem, written to show the decision as well as the answer. The subject varies, but the aim is consistent: enough context to use the technique sensibly rather than copy it blindly.

React's virtual DOM describes the UI before reconciliation updates the browser DOM. I explain the costs, list keys and why performance still needs measuring.

Garbage collection in JavaScript frees up unused memory automatically. Here, I explain how it works and how to prevent memory leaks in your applications.

How to implement server‑side rendering in Vue, with a clearer mental model for hydration, data loading, caching, and where SSR actually pays off.

Solve Daily Temperatures with a monotonic stack in TypeScript, storing indices to find the next warmer day without repeated scanning and common mistakes.

Build a React conversation UI with controllable announcements, reliable cancellation, explicit handoff approval, and retries that preserve the approved request.

Implement a Trie prefix tree in TypeScript with Map‑based nodes, insert, search, startsWith, shared prefixes, complexity, and alternative child storage.

How to build efficient recursive functions in JavaScript, with better base cases, less repeated work, and a clearer sense of when recursion fits naturally.

Execution context defines how JavaScript code runs, from global scope to function calls. Here, I explore how it works in browsers, React, Next.js, and Node.js.

Roll out React Compiler with matched control builds, emitted‑code checks, correctness tests, and a tested rollback. Keep timing separate from compiler coverage.

useMemo and useCallbackOptimise React performance with useMemo and useCallback only where profiling shows expensive calculations, unstable functions, or avoidable re‑renders.

Resume a Node.js CMS migration after a lost reply or killed process. Reconcile stable identities, verify checkpoints, and stop before overwriting manual edits.

Solve Binary Tree Zigzag Level Order Traversal with breadth‑first search, level sizing, alternating output order, and TypeScript implementation details.

A version‑specific investigation into Next.js 15.5.5 Middleware not firing in Pages Router, with checks, workarounds and Next.js 16 Proxy context.

Compare React Activity, conditional rendering, and CSS hiding. Preserve a panel's draft, clean up subscriptions, restore focus, and keep records separate.

How ISR improves Next.js performance by mixing static speed with controlled freshness, and where it fits best over fully dynamic rendering for changing content.

Answer immutable matrix range sums in TypeScript with a padded prefix table, inclusion‑exclusion, safe row allocation, and exhaustive small‑grid tests.

Reversing an array in JavaScript can be done with .reverse(), but it mutates the original array. Here, I explore immutable methods and older techniques.

Memory leaks in React can cause sluggish performance and excessive memory usage. Here, I explore common causes, how to prevent them, and debugging techniques.