Live Coding Eff in Anger
summary
Live-coding shows building a Pet Store REST service using the Eff monad from the freer package, wiring Servant/Warp handlers into an effect stack, writing interpreters like runPetStore and runInMemoryDatabase, and swapping a failing DB interpreter to exercise error paths; tests move from IO to F and are fixed live, demonstrating composable handlers and an ability to mock subsystems. Measured overhead for the plumbing is about 5–10%, and the final demo compiles and exercises HTTP error translation.
AI-written summary · about
chapters (6)
- 0:00Live coding intro
- 3:29Servant handlers to effects
- 15:37Database persistence with effects
- 31:50Handling DB failures
- 38:57Layered architecture thoughts
- 43:13Q&A
related talks
27mEffectful
47mWhirlwind Tour of the Scala Functional Programming Ecosystem
47mIntroduction to Algebraic Effects
47mLivebook & Elixir: Where AI, Web & Concurrency Meet
43mEverything You Always Wanted to Know About Functional Programming...
37mBuilding Reactive Services Using Functional Programming
45mRailway Oriented Programming - A Functional Approach to Error Handling
01mDesigning and Performing with Live Coding Languages
