Skip to content

Writing

Notes on how the things I’ve built were decided, built and measured.

Going back to 1984 for an engineering blog.02 Dec 2026The brief was one line: build an engineering blog. We could have shipped a list of posts in a week. Instead we asked who would read it, threw away the obvious answer, and ended up building a desktop from 1983.AEO, part one: being the answer.28 Sept 2026People now ask an assistant before they open a search page. If you have never thought about answer engine optimisation, this is where to start: the basic fixes, in the order I would make them, and how to tell if they are working.18 UI sounds. Zero audio files.21 Sept 2026A complete UI sound palette synthesized at runtime with the Web Audio API. No assets, no decode latency, and every parameter is a number you can tune.AI moves fast. So should building a web page.08 Apr 2026AI raised the speed of everything around us, so we needed velocity everywhere, the website included. A new page used to take one to two weeks. Teaching Claude Design the site's real HTML, component by component, brought it down to hours.Performance as a product decision.09 Dec 2025Fast pages are decided before the first component is written: what renders where, what ships, and what animates. Performance is not a cleanup phase.The repo is the system of record.08 Jul 2025How to use Notion as a CMS without letting it become your database: writers keep drafting in Notion, and every publish lands in git as a reproducible build. Why the repository, not a CMS admin, should be the source of truth.Why I pick GSAP over Framer Motion.10 Jun 2025Both are good. For launch pages, scroll-driven scenes and anything outside React, GSAP gives me a timeline I can steer. Where Motion still wins, and how I choose between them.useEffect, promises and setTimeout.19 Nov 2024Several useEffect hooks with an empty dependency array, some awaiting promises and some setting timers. What order do the logs come out in, and why?A 95% webview app, and why it shipped faster.12 Jun 2024At CRED I led the app build, almost entirely as web inside a native shell. The decision framework, the bridge, config-driven flows, and what I'd change.Micro-frontends at scale.20 Mar 2024One portal, thirty lines of business. At CRED the merchant portal and the internal tools ran as micro-frontends, one per line of business. The rules that kept them working as one product, what it cost, and when I would not do it.Why use Shopify Hydrogen?13 Nov 2021First impressions of Hydrogen, Shopify's React framework for custom storefronts, written while it was still a developer preview.var, let and const.20 Mar 2021Hoisting and the temporal dead zone. The usual answer is that var is global and let is block scoped, and that is not the whole answer.call, apply and bind.05 Aug 2020Three methods every JavaScript function has. call and apply run a function with a this you choose; bind gives you a new function to run later.