useMemo: YAGLIBYAGNIToday I want to talk about a React hook that I feel is often misunderstood: useMemo. I feel like there’s a common misconception that it’s…Jul 18Jul 18
Please, secure your forms before switching to Next.js!How a major classifieds website upgrading to Next.js led to my password in the URL query stringFeb 19Feb 19
Actually using the FinalizationRegistry API in JavaScriptI love following the ever-evolving ECMAScript spec, but lately some of the features coming out have been a bit esoteric.Jan 12Jan 12
Polling for new content using react-query useInfiniteQueryWe build native iOS and Android apps on my team at work using react-native. Among our most heavily used dependencies is react-query (v3)…Apr 5, 2023Apr 5, 2023
JS: Breaking the Rules — Runtime type guardsI love exploring the nature of TypeScript. Several years ago I ran across a pattern that I’ve never really used before, but immediately…Mar 8, 2023Mar 8, 2023
Using node.js and adb on a Raspberry Pi to pause my show when my Nebula projector autofocusesI backed the Nebula Cosmos projector on Kickstarter and overall love the product. The projector automatically refocuses shortly after…Nov 15, 20221Nov 15, 20221
Signing JavaScript objects with Symbol and ProxyECMAScript 6 includes powerful new APIs like Proxy() and its helpful companion Reflect. Here I want to explore how we can take advantage of…Jan 18, 2022Jan 18, 2022
A guide to managing your Time Machine backup diskOne of the best features of macOS is Time Machine. Time Machine automatically backs up your data, applications, and settings periodically…Mar 27, 2021Mar 27, 2021
Redux and React context are not mutually exclusiveYou may have come across a number of articles by now proclaiming “Redux is made obsolete by React context.”Apr 2, 2020Apr 2, 2020
Advanced compositional React with useContext, useRef, and useStateLet’s learn how to use React 16.8’s hooks API to create a clean, compositional UI component. This article assumes you’re familiar with…Mar 29, 20201Mar 29, 20201