Hadi Mobarra

Learning path · 4 articles

JavaScript in depth

Reactivity, proxies, streams and the type system, built from first principles.

  1. Metaprogramming in JavaScript with Proxy and ReflectIntercept property access, validation, and function calls with Proxy traps. Learn the invariants, the role of Reflect and receivers, and build a tiny reactive store, a validation layer and a negative-index array.6 min read
  2. Building a Fine-Grained Reactivity System (Signals) From ScratchSignals power Solid, Preact, Angular and Vue's reactivity. Build one in under 100 lines to understand dependency tracking, computed values, effects and glitch-free updates.6 min read
  3. Async Iterators, Generators and Web Streams in PracticeProcess data incrementally instead of all at once. A practical tour of generators, async iteration, backpressure, and the Web Streams API — with examples for paginated APIs, streaming fetch responses and LLM-style token streams.6 min read
  4. Type-Level Programming in TypeScript: Conditional, Mapped and Template Literal TypesTreat TypeScript's type system as a small functional language. Learn conditional types and infer, distributive behaviour, key remapping, recursive types and template literals, then build a type-safe router and a deep-path getter.5 min read