~/talk

Easy and Efficient Data Validation with Cats

Talkat Typelevel Summit NYC 2017 · on Thursday, 2017-03-23· [scala, software-architecture]
slides:none on file

Compares Option and Either (Scala 2.11/2.12) to Cats’ Validated and shows using ValidatedNel to run validations in parallel and return every failure instead of failing fast; demonstrates concrete functions validateEmail/validatePhone, builds a Validation type alias and an Error case class, wires a companion object with an accumulate errors helper, maps error lists to HTTP status codes, and shows runnable example code that composes, returns structured errors, and works as intended.

AI-written summary · about

  1. 0:00Start
  2. 2:23DATA VALIDATION
  3. 5:34FOR-COMPREHENSION
  4. 6:25CASE STUDY
  5. 7:28OPTION
  6. 18:36EITHER (2.12)
  7. 19:56BIASED EITHER WITH 2.11
  8. 22:29VALIDATED AND APPLY
  9. 26:24USE AN EXPRESSIVE ERROR TYPE
  10. 27:16OUR FINAL SOLUTION
  11. 28:55STEP 3
  12. 30:37A CONCRETE EXAMPLE
  13. 32:31SUMMARY
~/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.