Long reads on shipping software

Essays and tutorials on the web, the languages we build it with, and the habits that keep the work sustainable. Most of them come with a drawing.

Read today's post

Latest writing

three new today

  1. Svelte and AI coding toolsDec 3 Svelte 5 still compiles Svelte 4, so a coding agent that learned the old syntax never hears about it from your build. The Svelte team's autofixer closes most of that gap. I fed it the code models get wrong and wrote down what it caught and what slipped past. Why Svelte, part 22 · 8 minPiwi patches every hole the autofixer knows about and the tag says "clean". Two leaks still drip through, into a tray marked types and tests.
  2. Svelte + Tailwind v4 setupDec 3 One command installs Tailwind v4 in a SvelteKit app. The setup I actually use is that command plus the four things it doesn't tell you, including why a bare p selector in a component beats text-blue-600. Why Svelte, part 21 · 8 minThe background cabinet takes one key. Piwi holds the utilities one, and the `<style>` key stays on its hook for the things nobody passes in.
  3. A component library in SvelteDec 3 I packaged one Svelte Button, installed the tarball in a fresh app, and watched the build fail on an import that the library's own demo, svelte-check and publint were all happy with. The only test that counts is the one from outside. Why Svelte, part 20 · 7 minInside the fence the sign says "All good!" Out in a fresh app, Piwi presses the Button and the cable comes up one import short.
  4. Svelte vs React: one component, two waysDec 2 I wrote the same packing list in Svelte and in React, then counted what ran when I changed one thing. The React Compiler fixed typing for free. Checking off one item took three more changes to the code. Why Svelte, part 19 · 7 minSame list, two clipboards. In React, ticking one box runs every row again unless you reshape the code for the Compiler. In Svelte, you tick the box.
  5. Observability in SvelteKitDec 2 SvelteKit 3 emits OpenTelemetry spans for handle, load, form actions, endpoints and remote functions with one config flag. I traced a small app, and the docs' setup worked in dev and broke every request in production. Why Svelte, part 18 · 6 minThe trace runs through every box, handle down to load. The probe you clipped on to read it can also short the box, so test the built server.
  6. Testing Svelte componentsDec 2 In a Svelte project, a test's file name decides whether runes compile, whether it runs in Node or a browser, and whether your effects exist at all. I tested one small module from both sides of that line. Why Svelte, part 17 · 7 minSame test, two doors. The name on the file decides whether it runs in a browser or in a room where $effect doesn't exist.
  7. Migrating to SvelteKit 3 with sv migrateDec 1 I ran sv migrate sveltekit-3 over a small SvelteKit 2 app. It rewrote 15 files and wrote me a TODO list. After one fix the build passed, svelte-check found three more, and the nav links were broken in a way no tool flagged. Why Svelte, part 16 · 7 minsv migrate carries most of the app across and hands you a list for the rest. Check what fell off the cart that isn't on the list.
  8. SvelteKit 3: what's newDec 1 SvelteKit 3 moved its config into vite.config.ts and renamed $lib, but the bigger change is when mistakes surface. Missing env vars, secrets imported into the browser and leftover config files now stop the build. A few things still slip through to a 500, and I ran into most of them. Why Svelte, part 15 · 8 minThe build and the startup check catch most of what falls out of an upgrade. svelte-check catches some of the rest, so hold both sieves before anything reaches users.
All 82 posts, by tag

Read it in order

I'm Esteban Trillo, a software engineer who writes about the web, the languages we build it with, and the habits that keep the work sustainable.

By day I build patient access tooling that helps people get the correct medication faster. By night I write the tutorials I wish I'd found when I was stuck: the ones that explain the why, not just the what.

Each post gets a sketch of Piwi, a small black bird who does the hard part of the idea while I watch.

If something here saved you an afternoon, that's the whole point. Say hi, I read every reply.

Piwi hands a single letter to the user at a mailbox; a small note reads no noise.

New posts, no noise

One email when a post goes out, with its sketch. Nothing in between, and one link to leave.

Sign in faster next time?

Add a passkey and skip the email link. Your fingerprint, face or device PIN is enough.