Function Extraction Done Well
Extraction trades a block the reader must simulate for a name they can trust. Where to cut, why an un-nameable piece means the cut is wrong, and the honest case for inlining.

Extraction trades a block the reader must simulate for a name they can trust. Where to cut, why an un-nameable piece means the cut is wrong, and the honest case for inlining.

Smells are signals, not verdicts. Four dispositions for the smell in front of you, what actually multiplies the payoff, and the against-list worth saying out loud.

The process spine for retiring a UI library: what it actually does for you, the coverage verdicts that stop features vanishing, parity before deletion, and when it stays.

Unsupported browsers should land on a designed state, not an accident. Cascade-order fallbacks, feature-query craft, the gate inversion that drops the fallback in engines older than @supports, and gate removal.

The zero-height sentinel and its observer existed only to tell CSS what the engine already knew. Working stuck, snapped, and scrollable examples, plus the enhancement-only rule.

An accordion component is five jobs bundled together, and each one is now native. Exclusive groups without JavaScript, animated panels (height only in Chromium-based browsers, as of November 2026), and find-in-page that opens the right panel.

Transitions interpolate numbers, and auto is not one. How the new opt-in property and function retire the measure-then-animate pattern in Chromium, and the grid technique that works everywhere today.

Two structural gaps kept mount and unmount animations in JavaScript. For elements hidden rather than removed, @starting-style and allow-discrete close both, retiring transitionend listeners and timing constants.

Three small deletions: field-sizing for growing inputs, accent-color for control theming, and :user-invalid for polite validation styling — each with its own support gate.

The relational selector retires the observer-and-class-toggle layer. Three worked pattern families, the scoping rule that keeps them cheap, and where JavaScript state still belongs.