~/talk

Flexible Modeling: Keeping Your Domain Pure with Scala 3

Talkat Scalar 2026 · 2026-03-26..03-27· [scala]
slides:none on file

Refactors a boilerplate-heavy user domain by replacing wrapper classes and implicits with opaque types, extension methods, enums and union types. Shows a concrete airline example: add name.toAirlineSafe via an extension method instead of wrappers; use opaque types to make Name distinct from UserId with 100% no runtime allocation but explicit smart constructors; replace sealed-trait boilerplate with three-line enums; use union types to model search results without leaking a common trait. Result is a minimal, boundary-clean domain that compiles and runs.

AI-written summary · about

  1. 0:00Clean domain modeling
  2. 3:11Integration leaks with extensions
  3. 10:00Replacing AnyVal with opaque types
  4. 15:37Simplifying enums for status
  5. 17:23Preventing API leaks with union types
  6. 20:57Clean domain matters with AI
  7. 23:10Summary of Scala 3 tools
~/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.