~/talk

Functional Error Handling with Cats

links:none on file
slides:none on file

Option/Try/Either/IO all act as monads so composed parsing stops at the first failure — first-error wins — while Validated (an ApplicativeError, not a Monad) lets independent validations accumulate errors using a Semigroup for the error container — accumulated errors. Wrap per-field errors as Validated[_, F[E]] and combine with mapN to get either a constructed value or a concatenated error collection; prefer NonEmptyList or NonEmptyChain (or Chain for performance) to avoid slow list appends.

AI-written summary · about

  1. 0:00Start
  2. 5:06FOR COMPREHENSION
  3. 15:15MONAD TYPECLASS
  4. 18:14MONADS START WITH
  5. 21:35APPLICATIVEERROR TYPECLASS
  6. 25:02TUPLE SYNTAX
  7. 27:10FIRST ERROR WINS
  8. 31:14SEQUENCES
~/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.