~/talk

"Better Forms with LiveView"

Talkat GigCityElixir 2023 · 2023-05-19..05-20· [elixir-and-erlang, web-platform]
name:Andrew Ek
links:none on file
slides:none on file

Compares six LiveView form iterations and shows concrete fixes: use semantic HTML inputs and generated input components, add phx-change validate plus an ID so error tags show and form state survives disconnects, use phx-debounce="blur" to delay noisy validation, and add an amount_in_dollars virtual field that validates as dollars then multiplies to cents. Demonstrates browser validation (step, email types), phx-disable-with for slow submits, and warns that LiveView validation incurs server round trips and may need JS/React for ultra-polished, low-latency UX.

AI-written summary · about

  1. 0:00Introduction and Thesis
  2. 2:53Form Best Practices
  3. 4:00Validation Timing
  4. 7:14LiveView Form Iteration 1
  5. 10:53LiveView Form Iteration 2
  6. 16:11Handling Disconnects
  7. 18:41LiveView Form Iteration 3
  8. 22:22LiveView Form Iteration 4
  9. 25:37Semantic HTML and UX
  10. 30:06Advanced Techniques
  11. 34:04Trade-offs and Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.