~/talk

Design for errors - An introduction to Domain Modeling with Arrow

links:none on file
slides:none on file

Kotlin code demonstrates domain types instead of raw strings: value classes and private smart constructors validate names and emails at creation, and Arrow refined types save boilerplate. Network calls return an explicit error/success union using Either.bind to write sequential code without nesting, turning exceptions into typed failures. Examples include phone, postal and non-empty contact lists enforced by NonEmptyList, and a real-world cautionary story about defaulting nullable DOBs that led to account takeover. Overall the examples compile-time enforce constraints and reduce runtime surprises.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 6:28Domain modeling basics
  3. 10:51Refining types with Arrow
  4. 15:12Avoiding default values
  5. 21:40Modeling verified emails
  6. 27:50Classifying errors
  7. 31:05Railway oriented programming
  8. 35:41Using Either for error handling
  9. 39:18Future-proofing domain models
~/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.