Skip to content

Blog

Notes from the build

Long pieces on the web platform, engineering and machine learning. Plus The Wire, short briefs on the news as it lands.

RSS
ML for Web Devs5 min read

Machine learning for web developers: the only mental model you need

You do not need calculus to work with models. You need one idea, that a model is a function you fit instead of write, and the rest follows from things you already know.

Engineering6 min read

I would not start a new app in PHP

The strongest argument for PHP was never technical. It was that you could hire for it cheaply and host it anywhere. One of those two reasons has quietly stopped being true.

Engineering6 min read

How to patch PHP in a hurry without breaking production

PHP ships an out-of-band fix for two critical flaws at 14:00 UTC today. Here is the hour of preparation that turns the patch into a non-event, and the runbook for when it lands.

Shipping4 min read

What a small product actually costs to run

The hosting bill is the cheapest part and everyone budgets for it anyway. Here is the whole list, including the lines that only appear after you have customers.

Web3 min read

How :has() changed the way I write components

The parent selector we asked for since 2003 has been shipping for years now. It does not just save a class name. It moves state out of JavaScript entirely.

Engineering3 min read

The N+1 you cannot see

Everyone knows to eager load. The queries that actually take sites down are the ones hiding in an accessor, a Blade partial, or a policy. There is a one-line switch that finds all of them.

ML for Web Devs4 min read

What an embedding actually is

An embedding is a list of numbers that puts similar things near each other. That one sentence is enough to build search, recommendations and retrieval. Here is how.

Web2 min read

Container queries killed my breakpoints

Media queries ask how big the window is. That was never the question. Components care about the space they are given, and now they can ask.

ML for Web Devs4 min read

Tokens, context windows, and why your bill is what it is

The unit of billing for language models is not the request or the word. Once you understand tokens and how a context window fills up, the invoice stops being a surprise.