~/talk

Functional Programming with Effects

Talkat Scala Days New York 2018 · 2018-06-19..06-21· [functional-programming]
links:none on file
slides:none on file

Claim: monads follow directly from category laws and restore function composition for effectful code. Demonstrates six concrete effects — option, either, list, reader, writer, state — implements pure and flatMap as a Scala type class, derives map and tuple, and shows law tests require property testing (Cats). Builds a state-based RNG and composes die rolls deterministically from a seed so it works end to end. Practical result at work: adopting FP increases code quality and maintainability. Tools shown include for-comprehensions and Cats typeclasses.

AI-written summary · about

  1. 0:00Intro
  2. 0:11Goals for Today
  3. 3:09Functional Programming
  4. 4:53Referential Transparency
  5. 7:41World of Expressions
  6. 8:15Function Composition
  7. 13:22So what about ...
  8. 22:19What do they have in common?
  9. 26:30The Operations
  10. 28:49The Rules
  11. 31:35Monad
  12. 34:09Functor Laws
  13. 38:26Let's talk about Option Again
  14. 40:19Let's talk about Either Again
  15. 41:39Let's talk about List Again
  16. 42:25Let's talk about Reader Again
  17. 43:40Let's talk about State Again
~/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.