~/talk

OBJECTIFY YOUR FORMS: BEYOND BASIC USER INPUT

Talkat wroc_love.rb 2014 · 2014-04-17..04-20· [ruby, frontend-architecture]
links:none on file
slides:none on file

Shows a concrete before and after: a Rails CRUD form using accepts_nested_attributes_for that keeps price calculation in IceCream callbacks and grows validations and cleanup until it becomes hard to change and debug, then rebuilds the same meme‑based ice cream order with a Virtus gem form object, ActiveModel validations, nested form attributes, and a separate service object that performs persistence and the new price math so controllers and models stay small and testable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:18Rails defaults and complexity
  3. 3:49Single responsibility problem
  4. 6:17Form objects explained
  5. 9:47Benefits of form objects
  6. 11:18Q&A begins
  7. 17:11Q&A wrap-up
~/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.