HM
13 articles · 59 min read

Deep dives into JavaScript internals, React architecture, TypeScript and web performance — written from production experience.

JavaScriptReactivity

Building a Fine-Grained Reactivity System (Signals) From Scratch

Signals 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.

Sep 30, 20265 min read
JavaScriptMetaprogramming

Metaprogramming in JavaScript with Proxy and Reflect

Intercept 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.

Aug 18, 20265 min read
PerformanceCore Web Vitals

Taming INP: A Practical Guide to Interaction to Next Paint

INP replaced FID as a Core Web Vital. Learn how it's measured, how to find the slow interactions in your app, and the concrete techniques that cut it: yielding, deferring non-urgent work, React transitions and smaller DOMs.

Jul 14, 20265 min read
TypeScriptType System

Type-Level Programming in TypeScript: Conditional, Mapped and Template Literal Types

Treat 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.

Jun 2, 20265 min read
JavaScriptPerformance

Off the Main Thread: Web Workers, Transferables and RPC in Practice

Move expensive work off the UI thread. Covers dedicated workers in modern bundlers, structured clone costs, zero-copy transferables, a promise-based RPC layer, SharedArrayBuffer with Atomics, and OffscreenCanvas.

Apr 20, 20265 min read
ReactNext.js

A Mental Model for React Server Components and Streaming

Server Components, Client Components, the RSC payload, Suspense streaming and Server Actions — explained as one coherent model, with the composition patterns and pitfalls that matter in a real Next.js codebase.

Mar 9, 20266 min read
JavaScriptAsync

Async Iterators, Generators and Web Streams in Practice

Process 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.

Jan 26, 20266 min read
CSSPerformance

The Browser Rendering Pipeline: Writing 60fps Animations

Style, layout, paint and composite — what each stage costs, which CSS properties trigger which stages, and how to build animations that stay smooth with transforms, will-change, FLIP and the View Transitions API.

Nov 17, 20256 min read
JavaScriptPerformance

Hunting Memory Leaks in JavaScript Applications

How garbage collection really decides what to keep, the five leak patterns behind most SPA memory issues, and a repeatable DevTools workflow using heap snapshots, allocation timelines and WeakRef-aware design.

Sep 29, 20256 min read
Next.jsReact

Next.js Best Practices for Building Scalable Applications

Learn the essential best practices for building production-ready Next.js applications that scale well and remain maintainable.

Dec 15, 20242 min read
PerformanceWeb Development

Front-End Performance Optimization Guide

A comprehensive guide to optimizing front-end performance, covering Core Web Vitals, lazy loading, code splitting, and more.

Nov 20, 20241 min read
ReactArchitecture

React Architecture: Building Maintainable Applications

Explore proven architectural patterns for building large-scale React applications that are easy to maintain and extend.

Oct 10, 20241 min read