Elm architecture makes a comeback

Issue #542.December 1, 2026.2 Minute read.
Bytes

Today’s issue: Millennial-coded design systems, remembering our favorite Instagram filter (Earlybird), and why there are going to be a bunch of Lambos at Anthrocon next year.

Welcome to #542.


Eyeballs logo

The Main Thing

A person in a green bodysuit kicks toward a reporter holding a microphone beside a woman on a city sidewalk

TFW you realize Elm came out 14 years ago

Elm architecture makes a comeback

14 years ago, Elm invented the perfect language for building UIs. It was strongly typed, eliminated runtime errors, and made refactoring a breeze. The problem? You probably heard about it from a queefy coworker who wouldn’t shut up about monads, so you thought, “yeah… I’m good.” Fortunately, the Effect team is bringing back Elm architecture with their new project Effect UI.

For those of you who weren’t around back then, Elm Architecture is a pattern where you have a model (state), a view (a way to turn that state into HTML), and an update (a way to update your state via a message). If this sounds familiar, well, it’s the pattern that inspired Redux. So why are we reinventing it now?

Aside from the obvious answer that agents have made everyone more willing to try new things, libraries like Effect have become popular on the server because they turn the fuzzy parts of your app (errors, concurrency, and dependencies) into typed values, forcing your app to handle them appropriately. Basically, the things Haskell enthusiasts always raved about, but in a familiar language like TypeScript. And now, Effect is bringing those same principles to the UI.

Here’s how it works:

  • Components: Components are like tiny Elm apps, containing a model, view, and message-based API that updates the model. Messages can only update the component they belong to, so components can use a Provider to share state without passing props or callbacks through intermediate components, making the relationship explicit.

  • Data and State: Effect UI comes with a built-in data cache that shares fetches across components and keeps loading and error states out of your model.

  • Testing: Because of its design, you can “play” test your UI without a browser, module mocks, or real timers. Components mount to a test host and run real Commands, Queries, and Subscriptions against in-memory Layers, with delayed flows running instantly using a test clock.

Bottom Line: As much as it pains me to admit, the functional programming crowd may have been right about types, algebraic effects, and how to build UIs the “right way”. But I’m just glad there is a new framework to write about every week now, so life is good.


CodeRabbit logo

Our Friends
(With Benefits)

Paul Blart in a mall security uniform leans into a turn on a Segway

When your app gets serious about security

Fewer findings. Only real risks.

AI-generated code can introduce vulnerabilities that are easy to miss in a pull request. CodeRabbit Security continuously reviews your codebase for complex bugs and security risks, using full-codebase context to follow data flows, dependencies, and patterns beyond the latest diff.

Run CodeRabbit Security on your own repositories today


Spot the Bug logo

Spot the Bug

Spot the Bug – Sponsored by Apify

One Apify account opens a toolbox of web data APIs. Server Actors respond as soon as a request arrives, so your app or AI agent gets the result in the same call. Use code BYTES for $25 in credits.

function processUserData(userId, options = {}) {
  "use strict";
  let processedData = `User ID: ${userId}\n`;

  if (options.includeEmail) {
    processedData += "Email: user@example.com\n";
  }

  if (options.includeAge) {
    processedData += "Age: 25\n";
  }

  if (options.verbose) {
    processedData += "Processing mode: Verbose\n";
  }

  return processedData;
}

const userData = processUserData(12345, { includeEmail: true, verbose: true });

Cool Bits logo

Cool Bits

  1. Anthropic migrated their Messages API to Rust and wrote a technical blog post on how they did it. Literally, “Claude, migrate this to Rust. Make no mistakes.”

  2. Datadog released Ephyra, a property-based testing library for the LLM era.

  3. Here are 5 things you can do with Sentry’s agent tracing, including tracking your costs and turning conversations into evals. [sponsored]

  4. Dario wrote a sequel to “Pacing the frontier” called “regulate me because I’m rich and I no longer care.”

  5. George Hotz wrote a post about how AI is smarter than him now. Apparently, reading about the singularity when he was 15 led to him jailbreaking the iPhone. I’m not sure what conclusions we should take from that, but posting sepia selfies to Instagram from my T-Mobile iPhone 3GS felt like true freedom.

  6. Socket built function-level reachability analysis for Rust, which can trace execution paths from application code through transitive dependencies, compiler-generated code, and the standard library to find vulnerable functions.

  7. How one LaunchDarkly engineer used four agents and one Jira board to clean up a week’s worth of creepy, crawly bugs nobody had noticed. [sponsored]

  8. The team at Atlassian wrote about how they designed and built an MCP server for Jira. Christmas came early for all the PMs working at legacy software companies.

  9. Kirupa made a design system for agents to build educational content called ROFL (rolling on the floor laughing for the non-millennials).

  10. Blacksmith is a drop-in replacement for GitHub runners that’s 2x faster and costs up to 67% less. It’s dead simple and also fully observable in your CI pipeline. [sponsored]

  11. Amazon released an open-weight model called Ergo that specializes in writing PR/FAQs.

  12. Laravel just released a Rust-based version of the framework, giving hope to all the Rust developers who want to drive Lambos to Anthrocon.


Spot the Bug logo

Spot the Bug: Solution

Sponsored by Apify

A function with a default parameter cannot contain a "use strict" directive in its body, so this code throws a SyntaxError before it runs. Remove the default parameter and initialize options inside the function to keep strict mode and support omitted options.

function processUserData(userId, options) {
  "use strict";
  if (typeof options !== "object" || options === null) {
    options = {};
  }
  let processedData = `User ID: ${userId}\n`;

  if (options.includeEmail) {
    processedData += "Email: user@example.com\n";
  }

  if (options.includeAge) {
    processedData += "Age: 25\n";
  }

  if (options.verbose) {
    processedData += "Processing mode: Verbose\n";
  }

  return processedData;
}

const userData = processUserData(12345, { includeEmail: true, verbose: true });