~/talk

Refined types for validated configurations

Talkat Typelevel Summit Copenhagen 2017 · on Saturday, 2017-06-03· [software-architecture]
links:none on file
slides:none on file

Live-coding shows actual code: use PureConfig to eliminate boilerplate, attach refined types for predicates (nonEmpty, Positive, port > 1023) so invalid values fail at load time, and even write an impure predicate that binds a socket to check an open port. A small library called series demonstrates keeping most config in Scala, loading only secrets from environment, accumulating errors like Validated and integrating with shapeless and squants so validated, type-level configs load without ad hoc checks.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Overview
  3. 1:55Use cases
  4. 4:15Typesafe
  5. 6:05Validation
  6. 8:08Refined
  7. 10:48Refined settings
  8. 11:55Open port validation
  9. 14:02Configuration files
  10. 15:35Scala configuration
  11. 16:46Series
  12. 18:18Series Refined
  13. 21:53Try Script
  14. 22:48Summary
  15. 23:53Question
  16. 25:23Other systems
  17. 27:18UNIX
  18. 28:28SBT
  19. 29:38Loading configurations
~/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.