~/talk

ducktape - Holding Scala's Productivity Together

Talkat Scala Days 2023 Seattle · 2023-06-05..06-07· [developer-experience, scala]
links:none on file
slides:none on file

ducktape is a Scala 3, macro‑based library that materializes a Transformer typeclass to convert generated API case classes (OpenAPI/guardrail or smithy4s outputs) into domain types with one-line derives, handles enums and collections, and supports smart‑constructor routing via into/via. It wires refined/opaque newtypes into validation by generating accumulating mode or fail‑fast validations (Either or Option) and emits code that accumulates all field errors; the demo claims end‑to‑end validation and codegen work with no runtime failures.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05JSON API development reality
  3. 3:35What is ducttape
  4. 5:01Transformer type class safety
  5. 6:04Case class transformations
  6. 7:50Enum transformations rules
  7. 9:16Mismatched case class fields
  8. 11:25Private constructors transformations
  9. 13:50Foldable transformers intro
  10. 17:19Configuring foldable transformers
  11. 18:42Fail-fast vs accumulating modes
  12. 22:57What are IDLs and OpenAPI
  13. 26:48API to domain model transforms
  14. 30:00Real endpoint example
  15. 32:30Live demo and closing
~/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.