Effect-Oriented Programming
summary
Introduces Effect-Oriented Programming with runnable examples in Scala/ZIO and a TypeScript effect library, showing concrete results: a random-word pipeline using collectAllPar to fetch N words in parallel, a flaky save that retries twice and succeeds on the third try, a 5s timeout that produces a timed-out error, finalizers and fallback queues, tests that feed deterministic random booleans, repeat a test 10 times, and advance a simulated clock to avoid a 24-hour wait.
AI-written summary · about
chapters (8)
- 0:00Introduction and background
- 7:54Why functions don't compose
- 12:26What are effect systems
- 21:29First effect example
- 31:06Superpowers of effects
- 47:06Algebraic effects overview
- 48:52Testing with effects
- 58:06Conclusion and resources
related talks
30mLive coding session with James Douglas
30mTroll Driven Development: Implementing Functional Effects by Way of Self-Lobotomy
31mPick a (Effect) Lane: A comparison of direct-style Scala vs effect systems
44mEffects, Algebraically yours ..
33mRethinking Effects with Effect Systems
50mFunctional Programming with Effects
02mEffects, Algebraically yours ..
32mEffective Programming in OCaml
