~/talk

Concerns, Decorators, Presenters, Service Objects, Helpers, Help Me Decide!

Talkat RailsConf 2014 · 2014-04-22..04-25· [ruby-on-rails]
slides:none on file

Shows concrete refactors on a microblog app: moves email and finder code into concerns, pushes presentation HTML+URL logic into Draper decorators, collapses many controller instance variables into a single presenter object, and experiments with a micropost create service object then abandons most of that work in favor of model validations. Code lives on GitHub, tests and pull requests verify the changes, and RubyMine with VIM bindings speeds the refactor.

AI-written summary · about

  1. 0:00Start
  2. 3:57Organizational Conventions Matter
  3. 10:26Scenario
  4. 11:51Concerns: How
  5. 15:11Draper Decorators: Alternatives
  6. 18:58Business Case
  7. 20:01Service Objects?
  8. 20:21Service Objects Example
  9. 22:33Single Purpose Controller
~/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.