Published onOctober 5, 2023When to Use useReducer Instead of useStatereactfrontenduseState is the right default. But when state updates depend on each other or your update logic gets complex, useReducer is the better tool.
Published onAugust 29, 2023Writing Pull Requests That Actually Get ReviewedengineeringprocessMost engineers spend a lot of time writing code and very little time making it easy to review. A well-written PR gets merged faster and builds trust with your team.
Published onJuly 11, 2023HTTP Caching Headers, A Practical GuidehttpperformancebackendCache-Control, ETag, Last-Modified, these headers can make your app dramatically faster or subtly broken. Here's how to use them correctly.
Published onMay 22, 2023How async/await Actually Worksjavascriptfrontendasync/await is syntax sugar over Promises, which are built on the event loop. Understanding the full stack makes async code far less mysterious.
Published onApril 3, 2023CSS Stacking Contexts, Why Your z-index Isn't Workingcssfrontendz-index is not global. Stacking contexts create isolated z-index scopes, which is why your modal ends up under the sidebar.