Packed vs Holey Arrays in V8: Why new Array(n) Makes Spread 4x Slower
V8 labels every array by what it holds and whether it may have gaps. Labels only get more general, and holey arrays take slower paths.

Practical, diagram-first explanations you can read over coffee. 70 posts and counting.
Newest postuse cache stores a result, cacheLife decides when it goes stale, cacheTag lets you throw it out on demand. When to use each, and where TanStack Query fits.
V8 labels every array by what it holds and whether it may have gaps. Labels only get more general, and holey arrays take slower paths.

'this' in JavaScript depends on how a function is called, not where it's written. Four rules and one arrow-function exception cover every case.

The React Compiler normally runs through Babel in Node.js. Next.js can run a Rust version inside Turbopack instead. Learn what that changes and what it saves.

Turbopack is the Rust bundler inside Next.js. Learn the one idea behind its speed, remembering every small step, and when you'll actually feel it.

npm and Yarn fetch packages, Vite and webpack bundle code, Node runs it. Bun tries to do all of it. Learn which tool does which job.

Server-side rendering in one picture: the server sends finished HTML, then hydration makes it interactive. Learn the steps, the gap between them, and why mismatches happen.

A JavaScript class is a function with stricter rules. Learn the three rules it adds and why this.constructor lets an object reach its own class.

Browsers can't read JSX or types. See what the compiler erases, what it rewrites, and what actually reaches the browser in a Next.js app.

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.