~/talk

A closer look into error handling techniques

Talkat droidcon London 2022 · 2022-10-27..10-28· [testing, developer-experience]
links:none on file
slides:none on file

Claim: errors belong in the return type and treating them as first-class responses makes handling and composition predictable. Compares try/catch anti-pattern to using sealed-result containers, functional types like Either/Arrow for composable mapping, and Kotlin's built-in Result which forces Throwables. Recommends sealed classes for small apps, Arrow for functional teams and libraries with senior developers, and Result for a pragmatic middle ground. Also stresses logging, modeling error payloads, and team-wide agreement on the chosen strategy.

AI-written summary · about

  1. 0:00Introduction to error handling
  2. 1:09Why errors matter in development
  3. 2:57Problems with try-catch approach
  4. 5:27Errors as alternative use cases
  5. 6:50Monads and sealed classes
  6. 8:40Optional vs error handling
  7. 10:04Either data type explained
  8. 11:50Arrow and Kotlin Result
  9. 13:59Choosing the right strategy
  10. 15:45Team communication and logging
~/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.