~/talk

Oh, All the things you'll traverse

Talkat Scala Days Berlin 2018 · 2018-05-14..05-17· [functional-programming, scala]
slides:none on file

Explains how cats’ Traverse and related type classes actually flip nested types (turns List[Future[A]] into Future[List[A]]) and gives concrete code patterns: use simulacrum for typeclass syntax, use Traverse instead of map+sequence for speed, use ValidatedNel to validate many lines with accumulated errors in one expression, implement a parallel fold by grouping because associativity lets independent combines run concurrently, and use NonEmptyList plus semigroups to get safe reduce/max without runtime exceptions.

AI-written summary · about

  1. 0:00Start
  2. 1:50Ad Hoc Polymorphism
  3. 6:09Mono Type Class
  4. 9:39Implicit Derivation
  5. 11:04Type Classes versus Subtyping
  6. 17:01Right Identity
  7. 19:25Functors
  8. 20:11Type Constructors
  9. 21:08Monoidal Functors
  10. 23:35Future Dot Sequence
  11. 27:45Associativity
  12. 29:01Foldable Type Class
  13. 31:25Traverse Function
  14. 32:22Type Lambdas
  15. 37:42Semigroups
  16. 40:53Semi Grupo Functors
  17. 43:34Urgent Questions
  18. 43:51Why Do You Annotate the Type Class
~/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.