~/talk

Simple and Elegant Rails Code with Functional Style

Talkat RailsConf 2013 · 2013-04-29..05-02· [ruby-on-rails]
links:none on file
slides:none on file

A concrete claim: moving parsing and business logic into tiny, stateless actions lowers complexity and speeds testing. Tools used include flog to measure complexity (a real class showed ~2,700 lines and 25–206 line methods and project scores like 25,902 points) and a tiny gem light-service (organizers + actions). Results: service class averages drop from ~71 to 13.9, tests run much faster, reuse across flows is straightforward, and small classes replace brittle 2,500-line models so maintenance actually gets easier.

AI-written summary · about

  1. 0:00Start
  2. 7:09THE EXAMPLE.
  3. 12:00LOGIC OUTSIDE OF RAILS.
  4. 14:37IS IT BETTER?
  5. 15:05ONLY for_track IS PUBLIC
  6. 20:37WORKFLOW. SERIES OF ACTIONS
  7. 24:22ACTION EXECUTED.
  8. 27:49WORD OF WARNING
  9. 28:451. CONTROLLER
  10. 31:02SUMMARY
~/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.