Blog
Everyday utilities explained properly, with tested code you can install.
Stop your AI coding assistant from reinventing utilities: llms.txt, registries and agent rules
AI coding tools rewrite the same helpers (debounce, slugify, retry) in every project, often with subtle bugs. Here's how to point Claude Code, Cursor, Copilot and others at tested code instead, using llms.txt, the shadcn registry and agent instruction files.
Debounce vs throttle in JavaScript: the difference, with examples
Debounce waits for a pause, throttle sets a pace. Learn which one to use for search inputs, scroll, resize and autosave, with typed TypeScript implementations and the React mistakes to avoid.
How to deep clone an object in JavaScript (and when structuredClone isn't enough)
Spread, JSON.parse(JSON.stringify()), structuredClone or a custom function? What each one copies, what it silently breaks, and which to use in 2026.
Retry failed requests with exponential backoff and jitter in TypeScript
A production-ready retry helper for fetch and other async calls: exponential backoff, jitter, max delay, which errors to retry, Retry-After headers and cancellation with AbortSignal.