~/talk

Intro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 4 of 6

Talkat LambdaConf 2017 · 2017-05-25..05-27· [scala, functional-programming]
slides:none on file

Shows live Scala code proving how generic type classes solve concrete problems: implements folding with Foldable/foldMap and monoids to avoid ad hoc zeros, collapses nested effects with join for F[F[A]], and turns lists of tasks into a single task with Traverse.sequence/traverse. Walks through a map-merge exercise using monoid instances and a cache vs repository test that demonstrates brittle mocks and why abstract signatures plus applicative/monoid instances reduce accidental coupling.

AI-written summary · about

  1. 0:00Intro to generic problem solving
  2. 1:41Fold with semigroups and monoids
  3. 5:18Generalizing fold with type classes
  4. 11:57Scala’s multiple parameter lists
  5. 24:59Nested futures and tasks in real world
  6. 36:49Merge function exercise intro
  7. 41:49Merge function with monoids
  8. 47:43Testing and mocking in FP design
  9. 58:01Mock-based testing limits
  10. 1:00:19Compiler-enforced dependency contracts
~/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.