ls -lt ./posts
Posts
5 posts
2026
- Trees, Part 3: Your Code Is a Tree — How JavaScript Reads 2 + 3 * 5
Before running a single line, JavaScript turns your code into a tree. See the real AST, build a working calculator in ~50 lines, peek at V8's bytecode, and discover why Babel, ESLint and Prettier are all tree tools.
- Trees, Part 2: Walking the DOM and Your Component Tree
Why querySelectorAll returns elements in that order, why React runs child effects before parent effects, and how one recursive component renders comments 50 levels deep.
- Trees, Part 1: The Data Structure You've Used Since Your First <div>
Open DevTools and you're already looking at a tree. Learn what a tree really is, the vocabulary the DOM API borrowed from it, and the one recursive idea that makes every tree problem easy.
- Promise.all, allSettled, race, any — which one to pick?
Comparing the 4 Promise combinators in JavaScript: when they resolve, when they reject, and a practical use case for each.
- Understanding the JavaScript Event Loop in 4 Examples
Call stack, microtasks, macrotasks — predict the order of console.log calls and learn why a Promise always runs before setTimeout.