# Esteban Trillo > Essays and tutorials on the web, the languages we build it with, and the habits that keep the work sustainable. Written by Esteban Trillo. Each link below is the plain-markdown version of a post. ## Astro - [Astro 7 didn't break my blog. It changed my quotes.](https://devtrillo.com/writing/astro-7-mdx-blog-upgrade.md): Astro 7 swaps the Markdown and MDX pipeline for Sätteri, and the RSS Container API import that broke the betas still builds today, with a warning you won't see. Here's what changed on this blog, how to check yours, and whether to keep remark. ## Continuous Delivery - [Continuous Delivery Is a State, Not a Pipeline](https://devtrillo.com/writing/continuous-delivery-1-a-state-not-a-pipeline.md): Most people hear "CD" and picture a Jenkins pipeline. Humble and Farley's book means something bigger, and much stricter: your software is always ready to ship. - [The Pipeline Is a Value Stream, Not a Build Script](https://devtrillo.com/writing/continuous-delivery-2-the-pipeline.md): A deployment pipeline isn't CI plus a deploy step. It's a model of every commit's path to production — and each stage buys a different kind of confidence. - [Testing Is a Strategy, Not a Coverage Number](https://devtrillo.com/writing/continuous-delivery-3-testing-strategy.md): "More tests" isn't a strategy. The book's answer is a portfolio: automate the boring regression checks so humans spend their time on the work only humans can do. - [Your Environment Is Part of Your Program](https://devtrillo.com/writing/continuous-delivery-4-config-and-environments.md): Configuration and infrastructure aren't ops' problem for later. They're code, they're versioned, and "works on my machine" is a bug in the environment. - [The Database Is Where Continuous Delivery Goes to Die](https://devtrillo.com/writing/continuous-delivery-5-data-and-migrations.md): "You can't do zero-downtime releases with a real database." You can — the same way you decoupled deploy from release: expand, migrate, contract. - [You Can't Improve What You Don't Measure](https://devtrillo.com/writing/continuous-delivery-6-measuring-cd.md): "We deploy a lot" isn't a measure of Continuous Delivery. Four numbers are — and they turn out to be driven by culture more than by tooling. ## Effect on the Backend - [What changed in Effect 4 when you build a backend](https://devtrillo.com/writing/effect-backend-1-what-changed-in-effect-4.md): Effect 4 folded HTTP, SQL and RPC into one package, made you write your own layers, stopped treating Option and Ref as Effects, and stopped building the same layer twice. Here's the part of the upgrade a Node server feels, checked against effect 4.0.5. - [Effect.fn: functions with names and traces](https://devtrillo.com/writing/effect-backend-2-effect-fn-functions-with-names-and-traces.md): A function that returns Effect.gen loses its name and its caller by the time it fails. Effect.fn keeps both, opens a tracing span, and runs your error handling inside it. Here's what it changes in a Node backend, checked against effect 4.0.5. - [A Node server in 20 lines](https://devtrillo.com/writing/effect-backend-3-a-node-server-in-20-lines.md): The first HTTP server of the series, with HttpRouter, NodeHttpServer and NodeRuntime.runMain. It isn't shorter than plain node:http. What the extra lines buy you is decoded params, 404s and 500s, a request log, a clean shutdown, and a type that says the server never returns. - [Schema at the boundary](https://devtrillo.com/writing/effect-backend-4-schema-at-the-boundary.md): Path params and JSON bodies arrive as strings and unknown. Effect 4's Schema decodes them at the edge of each route, bad input becomes a 400 that says which field was wrong, and the types stop you from skipping the step. Checked against effect 4.0.5. - [HttpApi: define the API once](https://devtrillo.com/writing/effect-backend-5-httpapi-define-once.md): Effect 4's HttpApi puts every endpoint's path, schemas and status in one value. The server, a typed client and an OpenAPI document all come from it, and tsc tells you which handler you forgot. Checked against effect 4.0.5, gotchas included. - [Typed errors become status codes](https://devtrillo.com/writing/effect-backend-6-typed-errors-become-status-codes.md): In Effect 4's HttpApi an error class can carry its own HTTP status. Declare it on the endpoint and a missing user is a 404 the client catches by name. Bad input gets a 400 that says what was wrong. Checked against effect 4.0.5, gotchas included. - [Config and secrets](https://devtrillo.com/writing/effect-backend-7-config-and-secrets.md): Effect 4's Config reads the port and a database URL once, in a layer, so a bad value stops the server before it listens. Config.Redacted keeps the password out of the logs. Checked against effect 4.0.5, including where a secret still leaks. - [Wiring a real app with layers](https://devtrillo.com/writing/effect-backend-8-wiring-a-real-app-with-layers.md): Effect 4 layers, wired where each dependency is used: Layer.provide builds in order, an array builds at once, and a layer is shared by reference. Checked against effect 4.0.5, including the per-request requirement the types won't let go of. - [SQL and migrations with effect/sql](https://devtrillo.com/writing/effect-backend-9-sql-and-migrations.md): The users table moves into Postgres with @effect/sql-pg 4.0.5: tagged-template queries, rows decoded by Schema, and a migrator that runs before the port opens. Plus the wiring mistake that gave my server two connection pools. - [Transactions and scopes](https://devtrillo.com/writing/effect-backend-10-transactions-and-scopes.md): Creating a user now writes two rows, so it gets sql.withTransaction. Then I hung up on the request halfway through: Effect interrupted the handler, Postgres cancelled the query, and the transaction rolled back. Scope and acquireRelease are why. - [Auth middleware and a CurrentUser service](https://devtrillo.com/writing/effect-backend-11-auth-middleware-and-current-user.md): POST /users now needs a bearer token. An HttpApiMiddleware looks the token up and provides a CurrentUser service, and Users.create asks for it, so a route without the middleware doesn't compile. Plus the 401 that beats the 400. - [Testing handlers with @effect/vitest](https://devtrillo.com/writing/effect-backend-12-testing-handlers.md): Six tests that replace part 11's curl table. HttpApiTest gives a typed client wired straight to the real handlers and middleware, Users runs in memory, Tokens is a fake, and nothing opens a port or a database connection. - [Timeouts, retries and Schedule](https://devtrillo.com/writing/effect-backend-13-timeouts-retries-and-schedule.md): POST /users now sends a welcome mail through a flaky HTTP API. A timeout per attempt, retryTransient with jittered backoff, a deadline on the whole send, and an idempotency key so a retried POST doesn't mail Grace twice. TestClock checks the timing. - [Background jobs and graceful shutdown](https://devtrillo.com/writing/effect-backend-14-background-jobs-and-graceful-shutdown.md): The welcome mail moves out of POST /users and into a Queue with one worker fiber. forkChild, forkDetach and forkScoped each fail differently, and on SIGTERM the queue gets ten seconds to drain after the last request finishes. - [Logs, spans and metrics with OpenTelemetry](https://devtrillo.com/writing/effect-backend-15-logs-spans-and-metrics.md): Effect 4 ships its own OTLP exporter, so the server sends logs, spans and metrics to a collector without the OpenTelemetry SDK. One POST /users becomes one trace, once the background worker learns whose trace it's working for. - [RPC or HttpApi?](https://devtrillo.com/writing/effect-backend-16-rpc-or-httpapi.md): The users endpoints get a second door: Effect RPC at POST /rpc, calling the same services as the HttpApi. The contract shrinks and errors arrive as classes, but every answer is a 200 and a bad payload becomes a defect. - [Shipping it](https://devtrillo.com/writing/effect-backend-17-shipping-it.md): The server goes into a container: an esbuild bundle in a node:24-slim image, a /health and a /ready probe, and a SIGTERM that actually reaches runMain. Two of the ways people usually write the CMD line skip the drain entirely. - [Effect vs Hono and Express: the verdict](https://devtrillo.com/writing/effect-backend-18-effect-vs-hono-and-express.md): I wrote the series' server again in Hono and in Express 5, same routes, same queue, same drain, and broke all three the same ways. Effect took the most lines and the most memory. It also stayed up when Postgres restarted, and the other two didn't. ## Front-end Design for Developers - [Front-end design: the skill developers skip](https://devtrillo.com/writing/frontend-design-1-the-skill-developers-skip.md): "I'm not a designer" sounds like modesty. But every margin, font-weight and grey you type is a design decision. The only question is whether you make it on purpose. ## Learning Effect - [Stop Throwing Errors with Effect (Learning Effect, Part 1)](https://devtrillo.com/writing/learning-effect-1-introduction.md): A first pass at Effect for TypeScript developers: what Effect is, why errors become part of the type, and how to read the basic shape. - [Building Tiny Effects (Learning Effect, Part 2)](https://devtrillo.com/writing/learning-effect-2-building-tiny-effects.md): Effect starts with two small moves: create a value that succeeds, or create a value that fails. - [flatMap in Effect: Do This, Then That (Learning Effect, Part 3)](https://devtrillo.com/writing/learning-effect-3-flatmap-do-this-then-that.md): flatMap is how one Effect uses the successful value from another Effect. - [map vs flatMap in Effect (Learning Effect, Part 4)](https://devtrillo.com/writing/learning-effect-4-map-vs-flatmap.md): map changes a success value. flatMap continues with another Effect. Mixing them up is the first real Effect mistake. - [Errors You Can Actually See in Effect (Learning Effect, Part 5)](https://devtrillo.com/writing/learning-effect-5-errors-you-can-actually-see.md): Typed errors make failure part of the function signature instead of a surprise thrown from the dark. - [Catch One Error, Not the World (Learning Effect, Part 6)](https://devtrillo.com/writing/learning-effect-6-catch-one-error-not-the-world.md): catchTag lets you recover from one known error while leaving the rest of the failure type alone. - [The Third Slot of Effect (Learning Effect, Part 7)](https://devtrillo.com/writing/learning-effect-7-the-third-slot.md): The third slot tells you what the Effect needs from the outside world. This is where dependencies become visible. - [Effect Services Without the Ceremony (Learning Effect, Part 8)](https://devtrillo.com/writing/learning-effect-8-services-without-the-ceremony.md): Services and Layers let an Effect say what it needs and let the edge of the app decide how to provide it. - [Run Effects at the Edge (Learning Effect, Part 9)](https://devtrillo.com/writing/learning-effect-9-run-effects-at-the-edge.md): Effect programs are descriptions. Run them at the boundary of your app, not inside every helper. - [Concurrency Without Guessing in Effect (Learning Effect, Part 10)](https://devtrillo.com/writing/learning-effect-10-concurrency-without-guessing.md): Effect can run work in parallel while keeping the error path part of the program. - [One Small Real Program in Effect (Learning Effect, Part 11)](https://devtrillo.com/writing/learning-effect-11-one-small-real-program.md): The final beginner lesson combines parsing, fetching, handling one error, and running once at the edge. ## Next.js - [I patched Next.js for the October RCEs. The lockfile kept the vulnerable sharp.](https://devtrillo.com/writing/nextjs-october-2026-security-patch.md): The October 14 Next.js release fixes two critical RCEs and a Server Actions DoS. On 15.5, bumping `next` can leave the vulnerable `sharp` in your lockfile. How to check what your app is exposed to, what actually got installed, and the CI check that catches it next time. ## Node.js - [Node 26 is LTS. Half of what broke came from a release you skipped.](https://devtrillo.com/writing/node-26-lts-upgrade.md): Going from Node 24 to 26 means taking 25 as well, the release most teams skipped. Here's what broke when I tried it: Corepack, a native add-on, a TypeScript enum and a localStorage check. Plus the grep to run first and what the new release model means for your next upgrade. ## React - [React 19.3 made View Transitions stable. setState still won't animate.](https://devtrillo.com/writing/react-19-3-view-transitions.md): React 19.3 shipped ``, `addTransitionType` and Fragment Refs as stable. I ran all of them in a Vite lab on 19.3.1: what animates, what doesn't, and the root cross-fade and reduced-motion rule you still own. ## React - [TanStack Start 1.0: I ported a Next.js page and the compiler caught my redirect](https://devtrillo.com/writing/tanstack-start-1-0-porting-a-nextjs-page.md): TanStack Start dropped its RC label on October 13. I ported one Next.js 16 page to it: search params, a mutation, an auth gate, a server component, and a deploy to Cloudflare Workers. What moved, what got typed, and the one line that kept every request from returning a 500. ## Reading DDIA - [The Systems Book Everyone Recommends but Few Finish](https://devtrillo.com/writing/reading-ddia-1-systems-book-everyone-recommends.md): A very good, very long book that most people never finish. My plan to actually work through it, one part at a time, starting with Chapter 1. - [Relational, Document, or Graph — Choosing a Data Model](https://devtrillo.com/writing/reading-ddia-2-choosing-a-data-model.md): The data model wars, and why the "right" one depends on your access patterns — plus a real project where I picked wrong. ## System Design in Practice - [The system design checklist I actually use](https://devtrillo.com/writing/system-design-1-the-checklist.md): Most system design advice is written for interviews and stops at "scale the design". A design review asks harder questions: what are we promising, what happens when a dependency is slow, and who gets paged. Here's the checklist I use, and a one-page template to go with it. ## TypeScript - [TypeScript 7 broke your build. Run TS 6 next to it.](https://devtrillo.com/writing/typescript-7-side-by-side.md): TypeScript 7 ships without a compiler API. Every tool that imports `typescript` breaks. Two npm aliases get you the new `tsc` and keep the old API until 7.1. ## Why Svelte - [Svelte sounds too simple to survive a real app](https://devtrillo.com/writing/why-svelte-1-why-should-you-care.md): A whole Svelte component is two lines of state and a button. No hooks, no dependency arrays, no setter. That's the pitch. This series checks whether it holds up. - [Svelte didn't kill the runtime. It shrank it.](https://devtrillo.com/writing/why-svelte-2-svelte-is-a-compiler.md): Part 1's counter ships 10 kB gzipped in Svelte and 69 kB in React. The number is real. It also measures almost nothing you wrote. - [What $state hides](https://devtrillo.com/writing/why-svelte-3-what-state-hides.md): Runes, part 1. Four variables, one rune, four different compiled outputs. The compiler decides how much machinery each `$state` gets, and the proxy it picks for objects has edges worth knowing. - [Svelte 4 had dependency arrays. You just never saw them.](https://devtrillo.com/writing/why-svelte-4-dependency-arrays.md): Runes, part 2. Svelte 4's compiler wrote a dependency list for every `$:` line, and it could leave things out. `$derived` builds the list at run time instead, and then does less work than you'd guess. - [Most of your $effects should be something else](https://devtrillo.com/writing/why-svelte-5-effect-escape-hatch.md): Runes, part 3. `$effect` is the rune that looks most like what you already know, and the docs call it an escape hatch. Use it to sync state and your code reads a stale value for one pass. Most of the time you wanted `$derived`. - [A Svelte prop is a getter, not an argument](https://devtrillo.com/writing/why-svelte-6-props-are-getters.md): `$props` and `$bindable`. In React a prop is a snapshot handed to a function that runs again. In Svelte the script runs once and every prop is read through a getter, which explains the stale line, the local override, and why data only flows up through a door the child opens. - [In Svelte 5, children is a function](https://devtrillo.com/writing/why-svelte-7-children-is-a-function.md): Snippets, the replacement for slots. Svelte 5 turned the markup you pass to a component into a function: declared with `{#snippet}`, called with `{@render}`, passed as a prop, typed with `Snippet<[T]>`, and run once while its arguments stay live. - [Shared state in .svelte.ts modules](https://devtrillo.com/writing/why-svelte-8-shared-state-in-svelte-ts-modules.md): Global stores without stores. Svelte 5 lets you put `$state` in a `.svelte.ts` file and import it anywhere, as long as what you export is something the compiler can rewrite: an object you mutate, a function, or a class. And on the server, that module is shared by every request. - [Svelte best practices from the docs, tested](https://devtrillo.com/writing/why-svelte-9-svelte-best-practices-from-the-docs.md): Svelte's docs have a best-practices page, and it doubles as a skill file for coding agents. Half of it is this series in one line per rule. I ran the other half: unkeyed lists, `#key`, window listeners, style props, actions. The rules that read like performance tips turn out to be about bugs that never throw. - [Built-in transitions and animations](https://devtrillo.com/writing/why-svelte-10-built-in-transitions-and-animations.md): A Svelte transition is a function from `t` to a CSS string, and Svelte turns it into Web Animation keyframes before the first frame plays. That one design choice explains why transitions survive a busy main thread, why your reduced-motion reset doesn't touch them, and why a removed element is still in the DOM a second later. - [Scoped styles: CSS that stays put](https://devtrillo.com/writing/why-svelte-11-scoped-styles-css-that-stays-put.md): Svelte scopes a component's CSS by adding a class to every element the compiler can see in that component's markup, and to nothing else. That rule explains the deleted selector, the child component your styles can't reach, the utility class that loses, and when `:global` is the right answer. - [SvelteKit fundamentals: routes and layouts](https://devtrillo.com/writing/why-svelte-12-sveltekit-fundamentals-routes-and-layouts.md): In SvelteKit a folder is a URL and a `+layout.svelte` wraps everything below it. The part that bites is what happens on navigation: SvelteKit keeps the components it can, so a layout's state survives and a page can keep state from the last URL. - [Form actions and progressive enhancement](https://devtrillo.com/writing/why-svelte-13-form-actions-and-progressive-enhancement.md): A SvelteKit form action is a function in `+page.server.ts` that a plain `
` can call, so the form works before any JavaScript loads. `use:enhance` then keeps the same markup and swaps the full page reload for a fetch. Here's what each half does, and what changes between them. - [Remote functions in SvelteKit](https://devtrillo.com/writing/why-svelte-14-remote-functions-in-sveltekit.md): A remote function is a server function you import into a component and call like any other, with the types carried across. SvelteKit writes the endpoint and the `fetch` for you. It's still experimental, and the endpoint is still there, so here's what `query`, `form` and `command` do on the wire. - [SvelteKit 3: what's new](https://devtrillo.com/writing/why-svelte-15-sveltekit-3-whats-new.md): 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. - [Migrating to SvelteKit 3 with sv migrate](https://devtrillo.com/writing/why-svelte-16-migrating-to-sveltekit-3-with-sv-migrate.md): 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. ## Other posts - [My agent found the memory leak. Its own snapshot padded the number.](https://devtrillo.com/writing/devtools-mcp-memory-leak-hunt.md): With --memoryDebugging, Chrome DevTools MCP gives a coding agent 13 more heap snapshot tools, enough to diff snapshots, follow a retaining path and verify a fix. I planted a leak and let Claude Code hunt it. It found the cause in 81 seconds and reported a leak 2.5 times bigger than the one I measured. - [Leaving Deno Deploy for Cloudflare Workers: the port that compiled and lost 46 of 50 clicks](https://devtrillo.com/writing/deno-deploy-to-cloudflare-workers.md): Deno Deploy shuts down around April 2027. I moved a small Deno KV app to Cloudflare Workers. The obvious port to Workers KV typechecked, ran, and counted 4 clicks out of 50. Here's what replaced it, and how to get your data out first. - [Isolated retries turned my flaky suite green. A test lock fixed it.](https://devtrillo.com/writing/playwright-flaky-suites.md): Playwright's isolated retries kept a contended suite green five runs out of five, with flaky tests in every run. A 1.63 test lock made it green with retries off, and 1.64's seeded shuffle found an order dependency the default order hid. Tested on Playwright 1.64.1. - [My agent's traces had my email on every span](https://devtrillo.com/writing/tracing-claude-code-with-otel.md): Claude Code can send OpenTelemetry traces of every session to any collector. They show what each model call and tool call cost in tokens and time, and they carry your email and account IDs by default. Here's the collector config that scrubs them, and what the traces can and can't answer. - [Your SHA pin stops one layer down. GitHub's lockfile doesn't.](https://devtrillo.com/writing/github-actions-lockfiles.md): GitHub's new workflow lockfile pins every action your workflows pull in, including the ones hidden inside composite actions, and the runner enforces it with no policy turned on. Here's what it caught in a sandbox repo, and the reusable workflow it skipped. - [bun check passed six type errors. It never checked one.](https://devtrillo.com/writing/bun-check-vs-tsc-7.md): Bun 1.4.3's type checker gave the same errors as tsc 7 on all three projects I diffed, and ran 2.5x to 3.3x faster on Playwright. But a `check` script in package.json takes over the command, `--check` only follows static imports, and it never reads `.astro` files. - [Vitest 5 failed three of my four tests. None of them were bugs.](https://devtrillo.com/writing/upgrading-to-vitest-5.md): Upgrading from Vitest 4.1 to 5.0 fails tests that used to pass, because the defaults changed. Here's what broke in a small suite, how to fix each one, and the new APIs worth using once you're green. - [How I Configured My Mac Mini to Be My Main Server](https://devtrillo.com/writing/mac-mini-as-my-main-server.md): A Mac mini can host a real app without opening a port on your router. Here is the setup, and the one tradeoff I had to accept to make it survive a reboot. - [Refactoring Is a Discipline, Not a Cleanup](https://devtrillo.com/writing/refactoring-is-a-discipline.md): Most people use "refactor" to mean "tidy up when there's time." Martin Fowler's book means something narrower, and much stronger. - [Tracer bullets for LLM work](https://devtrillo.com/writing/tracer-bullets-with-llms.md): LLMs like to build features layer by layer. Tracer bullets keep the work small, vertical, and easy to prove. - [Throwback Thursday: Extreme Programming in Today's World](https://devtrillo.com/writing/throwback-thursday-extreme-programming.md): Extreme Programming was written for teams of humans in 1999. Most of it reads like it was written for working with AI. - [let's build codebases that AI loves](https://devtrillo.com/writing/lets-build-codebases-that-ai-loves.md): Deep modules make code easier for humans to change and for agents to understand, because the important details are hidden behind small, honest interfaces. - [Your agents can't see](https://devtrillo.com/writing/your-agents-cant-see.md): An agent gets nothing unless a command prints it. Designing for Agent Experience is mostly the work of turning feedback into something the agent can run. - [How to Survive the AI Age: Build Your Foundation](https://devtrillo.com/writing/how-to-survive-ai-age.md): AI can help you write code faster. Your fundamentals are what keep that speed from turning into a mess. - [How I built this blog](https://devtrillo.com/writing/how-i-built-this-blog.md): A static site, a terminal theme, and one Cloudflare Worker that serves the pages and a database-backed counter API. Here's why each piece is the way it is.