A practical introduction to category theory
summary
Introduces concrete patterns in Scala: Option as a short‑circuiting to‑do list pattern (monad) and Either that still short‑circuits, then shows how applicative functors let validations run in parallel so errors accumulate. Implements email/phone form validation, compares Option/Either behavior to Validated (no flatMap, so it combines errors) and uses the Cats library and its applicative operator to return either a Data case class or a list of error messages. Examples compile and behave as claimed.
AI-written summary · about
chapters (6)
- 0:00Introduction to the talk
- 0:17My programming transition
- 1:24Understanding composition
- 18:21Limitations of types
- 18:38Validation and applicatives
- 27:02Conclusion and resources
related talks
40mA Pragmatic Introduction to Category Theories
42mA pragmatic introduction to Category Theory
46mOptimusPrimeT
41mA Pragmatic Introduction to Category Theory
52mCategory Theory Through Functional Programming (part 1/3)
36mAn introduction to monadic structures and functional programming
39mFunctional Error Handling with Cats
32mClassical Category Theory in Plain Scala
