~/talk

Raising The Abstraction Level With Hkts And Type Classes

Talkat Scala Italy 2017 · on Saturday, 2017-05-13· [scala]
links:none on file
slides:none on file

Shows a concrete refactor: reduce a list/option of functions A => F[A] into a single reusable fold by abstracting Future and Either into m[_] with Monad and Foldable, implementing a generic foldMap/sequence that composes monadic functions. Uses Scala type-level features and mentions cats or ScalaZ for instances. Result: one implementation replaces N concrete versions (Future, Either, Option, List, Vector), the type signature grows but the body stays tiny and it works across those types.

AI-written summary · about

  1. 0:00Introduction
  2. 0:48Monads in practice
  3. 2:17Abstracting with monads
  4. 9:10Higher kinded types
  5. 12:44Factoring repetition
  6. 17:21Final foldable version
  7. 19:31Learning curve
  8. 21:16Key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.