React memo vs useMemo vs useCallback — When to Use Which
Three React APIs that all say 'memoize' — but they do different things. Clear explanations, examples, and a cheatsheet.
Short posts with code and diagrams. Readable in minutes.
Generators let you produce values on demand instead of all at once. Learn how iterators and generator functions work, and when to reach for them.
Three React APIs that all say 'memoize' — but they do different things. Clear explanations, examples, and a cheatsheet.
A CDN speeds up your app by serving assets from servers close to your users. Here's how it works and how Next.js takes advantage of it.
What queueMicrotask does, how it differs from Promise.then, and how microtasks really work under the hood.
Async/await feels like parallel code, but it isn’t. Here’s why JavaScript is still single-threaded and how async really works.
If JavaScript is single-threaded, how can Promise.all handle multiple requests at the same time? A deep dive into the event loop and async I/O.
A practical and conceptual comparison of Promise.all, Promise.race, Promise.any, and Promise.allSettled.