~/talk

UP YOUR MTL GAME WITH CLASSY OPTICS

Talkat Scalar 2019 · 2019-04-05..04-06· [functional-programming, scala]
slides:none on file

Claims that replacing monad transformers with MTL plus classy optics removes lifting, keeps polymorphic F, and derives instances (Reader/State/Error) via generated lenses/prisms. Implements applicative ask and MonadError derivation for nested config and a PaymentError ADT, maps business errors to HTTP responses in production since Sept 2018, and materializes programs with a RIO-style newtype or zero/Task. Works in practice but increases cognitive load; recommends using a small subset (ask, MonadError), Ref for state, and module-based interpreters.

AI-written summary · about

  1. 0:00Intro
  2. 0:43What is MTL
  3. 5:48What is Classy Optics
  4. 15:25Remo
  5. 16:46Zero
  6. 17:22Example
  7. 19:05Benefits and drawbacks
  8. 19:56Personal recommendation
  9. 21:28Avoid this
  10. 21:52Create modules
  11. 22:12Time Apps
  12. 23:31Refactoring
  13. 24:19Disclaimer
  14. 24:57Legality
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.