Articles for people who
ship the stack
Rewrites on React, Node.js, TypeScript and AI. A translated body is shown when it exists. If it does not, you see the English text and a note that says so.
Tagged: Closures
Closures vs private vs #: What Each Protects in TypeScript and JavaScript
TypeScript private is a compile-time check, hash fields are enforced at runtime, and closures capture lexical scope. A side-by-side look at what each one does.
7 min readJavaScript’s Real Blueprints: Prototypes, Delegation, and Functions
Why class is syntax sugar over prototypes, how delegation differs from classical inheritance, where this breaks, and what functional style buys in JavaScript.
11 min readHow V8 closure contexts retain memory beyond what one function uses
V8 builds one shared context per call for every outer variable any inner function mentions—so unused siblings and permanent listeners can pin large values.
8 min readClosures, hoisting, and this: JavaScript rules that show up in bugs
Hoisting, closures and this in JavaScript, taught through the bugs that make them stick: TDZ errors, shared var bindings in loops and detached methods.
5 min readExplaining Browser JavaScript in Interviews: Queues, Heap, Leaks, Closures
A structured tour of the browser runtime for interview prep: call stack, task and microtask queues, heap and garbage collection, leaks, delegation, prototypes and closures.
10 min readClosure-Backed Factories: Private State, Debounce, Rate Limits and Undo
See how closures keep private state alive in JavaScript factories, why they cause stale values in React timers, and how debounce, rate limiting and undo depend on them.
7 min readSnapshot or Live Value? Deciding What Delayed JavaScript Callbacks See
Learn why closures keep access to bindings rather than copies, and how to choose between snapshot and live data in timers, React effects, listeners and async code.
16 min readJavaScript Currying Demystified: Closures, Partial Application, Reuse
Learn how currying turns multi-argument JavaScript functions into reusable single-argument chains, how it differs from partial application, and when to skip it.
5 min readWhere a Function Is Written Decides What It Sees: JavaScript Lexical Scope
Understand how JavaScript resolves a variable name through lexical environments, why the call site never matters for lookup, and how this carries into React handlers.
11 min read
About these articles
Request a 24h estimate
Need the same stack in a production operator layer? Send the brief — estimate within 24 hours.