JavaScript format number

Format numbers and currencies with regular expressions, toLocaleString, and the built-in Intl.NumberFormat API.

JavaScript

JavaScript math methods I never knew existed

A CPU-intensive JavaScript snippet sends me exploring the less familiar corners of the Math object.

JavaScript

React Aria - A better approach to design systems

How React Aria separates accessible interactions from visual styling, giving custom designs a useful foundation.

JavaScript

Exciting movement in JavaScript tooling

What excited me about Snowpack, esbuild, Vite, and the push for faster JavaScript tools in 2021.

JavaScript Compilers

JavaScript if else syntax

A quick reference for writing if, else if, and else conditions in JavaScript.

Tips JavaScript

Increase Gatsby performance with Webpack Bundle Analyzer

Finding oversized JavaScript dependencies in a Gatsby site with Chrome DevTools and Webpack Bundle Analyzer.

JavaScript Performance Compilers

Setting up Gatsby Webmentions on your site

Connecting Gatsby, Webmention.io, and Bridgy to display social responses beneath blog posts.

JavaScript Blogging

Webmention playground

An early experiment in bringing responses from social media onto this blog with Webmentions.

JavaScript

Introduction to async JavaScript

Compare callbacks, promises, and async/await by building the same small animation with all three approaches.

JavaScript

Patreon layoffs seem cruel

Questioning Patreon’s April 2020 layoffs amid growing creator activity and a difficult job market.

React JavaScript

Suspend a React Component from the DevTools

Use React DevTools to hold a component in its suspended state and inspect its loading fallback.

React JavaScript

Managing Immutable State with Object Spread

Use object and array spread to update application state while keeping the original data intact.

JavaScript

Easier Type Safety in JavaScript Classes

Use TypeScript constructor parameter properties to keep class declarations concise while preserving type safety.

JavaScript

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.

Compilers JavaScript