14 posts · all topics
JavaScript
The language, its tools, and the patterns behind everyday web development.
JavaScript format number
Format numbers and currencies with regular expressions, toLocaleString, and the built-in Intl.NumberFormat API.
JavaScript math methods I never knew existed
A CPU-intensive JavaScript snippet sends me exploring the less familiar corners of the Math object.
React Aria - A better approach to design systems
How React Aria separates accessible interactions from visual styling, giving custom designs a useful foundation.
Exciting movement in JavaScript tooling
What excited me about Snowpack, esbuild, Vite, and the push for faster JavaScript tools in 2021.
JavaScript if else syntax
A quick reference for writing if, else if, and else conditions in JavaScript.
Increase Gatsby performance with Webpack Bundle Analyzer
Finding oversized JavaScript dependencies in a Gatsby site with Chrome DevTools and Webpack Bundle Analyzer.
Setting up Gatsby Webmentions on your site
Connecting Gatsby, Webmention.io, and Bridgy to display social responses beneath blog posts.
Webmention playground
An early experiment in bringing responses from social media onto this blog with Webmentions.
Introduction to async JavaScript
Compare callbacks, promises, and async/await by building the same small animation with all three approaches.
Patreon layoffs seem cruel
Questioning Patreon’s April 2020 layoffs amid growing creator activity and a difficult job market.
Suspend a React Component from the DevTools
Use React DevTools to hold a component in its suspended state and inspect its loading fallback.
Managing Immutable State with Object Spread
Use object and array spread to update application state while keeping the original data intact.
Easier Type Safety in JavaScript Classes
Use TypeScript constructor parameter properties to keep class declarations concise while preserving type safety.
Writing a Babel plugin to convert arrow functions to function expressions
A small Babel plugin that uses the visitor pattern to turn arrow functions into function expressions.