~/talk

Refined, Tailor-Made Types

TalkinFrenchat ScalaIO 2019 · 2019-10-29..10-31· [typescript]
links:none on file
slides:none on file

Refined integrates validation rules into Scala types so invalid values are rejected at compile time or produce structured runtime errors via the from constructor. It shows using play-refined for JSON (de)serialization and error mapping in Play, and migrating a REST DTO layer to refined types so service code receives already-validated values. It reports production use works but reduces ergonomics (numeric operations need .value or implicits) and requires extra library imports to restore usual operations.

AI-written summary · about

  1. 0:00Intro
  2. 1:00Why Refined?
  3. 3:28Refined: The Concept
  4. 6:56Compile-Time Validation
  5. 11:28String & Collection Predicates
  6. 19:16Conclusion
~/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.