~/talk

Refactoring Towards Component-based Rails Architectures

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

Argues that large Rails apps get manageable by extracting verticals into namespaced, testable components: use mountable engine and local gems as packaging, keep one repo and one deploy, run RSpec and Jasmine per component so tests load only that code. Notes surprising scales — open‑source apps up to ~400k LOC, projects with six+ engines, teams creating ~a component a day — and shows the common failure: a huge user model attracting unrelated behavior. The approach reduces interdependence and proves practical.

AI-written summary · about

  1. 0:00Start
  2. 26:37Namespace controllers, views, and models
  3. 27:12Hunt down other dependencies
  4. 27:24Move all namespaced code into an engine
  5. 27:41Step 3. PROFIT
  6. 29:08Find functional component
  7. 29:54Add shims/ports/adapters to make the app happy
~/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.