~/talk

Automating API Busywork with Scala

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

Scala code uses transparent traits (Scala 3) to infer precise union types for endpoint error sets, turning implementation errors into a machine-readable schema that gets auto-generated into Caliban schema generation files and checked in CI for regressions. Error handling uses ZIO IO and shows how to keep stack traces while preserving exact error unions. For response shape churn the Decurio library models domain relations as declarative selection trees, composes batched ZQuery-like fetches to avoid N+1, and emits runnable imperative code for local resolution. Demo repo included.

AI-written summary · about

  1. 0:00Introduction
  2. 2:50Error handling automation
  3. 7:42Error type inference
  4. 9:07GraphQL schema generation
  5. 11:54Extending schema automation
  6. 13:18Return type selection
  7. 17:57Selection tree churn
  8. 22:38Decurio for relations
  9. 25:27Declarative trees benefits
  10. 26:12Recap and Scala
~/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.