Blog

Notes on data structures & algorithms, system design, and things I learn along the way.

July 12, 2026Generators and Iterators: Functions That Pause4 min read

The protocol behind for...of, the spread operator, and async/await — plus generator functions, which can pause mid-execution and resume exactly where they left off.

#JavaScript
July 7, 2026Prototypes and Inheritance: How JavaScript Objects Really Work6 min read

The prototype chain is the engine behind every JavaScript object and the class keyword is sugar on top of it — here's how the whole thing actually works.

#JavaScript
July 7, 2026The this Keyword: Four Rules That Explain Every Case4 min read

Why this is confusing in JavaScript and how four simple binding rules — plus arrow functions — determine its value in any situation.

#JavaScript
July 7, 2026Type Coercion and Equality: Making Sense of == in JavaScript5 min read

Why [] == ![] is true and other coercion puzzles — the actual rules behind == , truthiness, and the handful of habits that keep them from biting.

#JavaScript
July 6, 2026Closures in JavaScript: Private State, Loops, and Stale Values5 min read

What a closure actually is, how the scope chain makes it work, and the three places closures matter most — private state, the classic loop bug, and React hooks.

#JavaScript
July 6, 2026Debounce vs Throttle: Taming Event Storms in JavaScript4 min read

An interactive guide to debouncing and throttling — when to use each, how to implement them from scratch, and the edge cases that bite in production.

#JavaScript
July 6, 2026The JavaScript Event Loop: How Async Actually Works5 min read

A visual, step-by-step guide to the event loop — call stack, task queue, microtasks, and async/await — with interactive animations you can play through.

#JavaScript
July 6, 2026JavaScript Promises in Depth: Chaining, Errors, and Combinators5 min read

The rules that make promises predictable — state transitions, how .then chains really resolve, error propagation, and when to reach for all, allSettled, race, or any.

#JavaScript