every tag

Learning Effect

An 11-part beginner course in Effect 4, the TypeScript library that puts errors and dependencies in the type. It is for TypeScript developers who have heard of Effect, opened the docs, and closed them again.

I wrote it the way I learned it: by using Effect, getting confused, and writing down the parts that finally clicked. Each part is short, takes one idea, and ends with a few quiz questions so you can check it stuck.

By the end you can read the three slots of an Effect: what you get, what can fail, and what it needs. You can build effects that succeed or fail and chain them with map and flatMap. You can recover from one known error with catchTag and leave the rest alone. You can ask for services, provide them with Layers, run work concurrently, and run the whole program once at the edge of your app.

The last part puts it together in one small real program. Parse a request, fetch a user, turn a missing user into a 404.

Read it in order. Every part leans on the one before it. The series is finished, so you can go straight through.

11 parts,oldest first

  1. Stop Throwing Errors with Effect (Learning Effect, Part 1)Jul 10, 2026 Learning Effect · 3 min
  2. Building Tiny Effects (Learning Effect, Part 2)Jul 11, 2026 Learning Effect · 2 min
  3. flatMap in Effect: Do This, Then That (Learning Effect, Part 3)Jul 12, 2026 Learning Effect · 2 min
  4. map vs flatMap in Effect (Learning Effect, Part 4)Jul 13, 2026 Learning Effect · 2 min
  5. Errors You Can Actually See in Effect (Learning Effect, Part 5)Jul 14, 2026 Learning Effect · 2 min
  6. Catch One Error, Not the World (Learning Effect, Part 6)Jul 15, 2026 Learning Effect · 2 min
  7. The Third Slot of Effect (Learning Effect, Part 7)Jul 16, 2026 Learning Effect · 2 min
  8. Effect Services Without the Ceremony (Learning Effect, Part 8)Jul 17, 2026 Learning Effect · 2 min
  9. Run Effects at the Edge (Learning Effect, Part 9)Jul 18, 2026 Learning Effect · 2 min
  10. Concurrency Without Guessing in Effect (Learning Effect, Part 10)Jul 19, 2026 Learning Effect · 2 min
  11. One Small Real Program in Effect (Learning Effect, Part 11)Jul 20, 2026 Learning Effect · 2 min

Sign in faster next time?

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