~/talk

Design for errors — an introduction to Domain modelling with a bit of Arrow

links:none on file
slides:none on file

Walks a real API from nullable JSON DTOs to strict domain types in Kotlin using the Arrow library, replacing nullable strings with smart constructors, a sealed VerifiableEmail type and a NonEmptyList for contacts so invalid states can’t be represented. Wraps an unsafe sendEmail into an effectful call returning Option/Either/Try so network errors, timeouts or verification failures are explicit. Shows how these types stopped accidental defaults (anonymized 7‑Eleven incident) and how validation and composition actually work in practice.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:52Primitive obsession in domain modeling
  3. 7:13Smart constructors and validation
  4. 13:20Introducing Option type for errors
  5. 21:54Email validation and domain types
  6. 25:53Verified vs unverified email states
  7. 33:48Handling missing data and defaults
  8. 41:04Refactoring user profile with ContactInfo
  9. 45:00Non-empty lists for business rules
  10. 47:11Try type for exception handling
  11. 51:46Key principles of domain modeling
  12. 53:57Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.