~/talk

Form Validations Do Not Have To Suck. Introducing Vest!

Talkat code.talks 2022 · 2022-09-15..09-16· [javascript, developer-experience]
slides:none on file

Vest is a framework-agnostic form validation library that treats validations like unit tests, using createSuite/enforce/test declarative rules. The demo wires Vest into a React form, shows live sync and async checks (mocked username uniqueness), field-scoped updates with only to avoid noisy errors, memoized async results to avoid repeated requests, and warnings that don’t block submit. The distributed bundle is tiny at ~7KB, the API composes across fields and works with React, Vue and Angular as shown.

AI-written summary · about

  1. 0:00Form validation history
  2. 3:15Introducing Vest
  3. 5:44Problems with conventional validation
  4. 7:10Validation library types
  5. 10:23Unit testing inspired solution
  6. 12:12Live demo setup
  7. 16:10Adding validation rules
  8. 18:19Field-specific validation
  9. 19:02UI integration with classes
  10. 20:31Disabling submit button
  11. 21:34Adding warnings
  12. 23:25Async validation with spinners
  13. 26:34Skipping async on errors
  14. 27:14Memoization for async
  15. 27:55Vest structure benefits
  16. 28:36Key features and agnosticism
  17. 29:41Installation and resources
~/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.