~/talk

Writing Modular Ruby Code: Lessons Learned from Rails 3

Talkat MountainWest RubyConf 2010 · 2010-03-11..03-12· [ruby]
slides:none on file

Argues against premature modularity and shows concrete Rails 3 changes: moves routing off globals so multiple routers and rackapps URL helpers work, converts class-level flags into per-instance perform_caching so tests and thread safety improve, replaces path-based templates with storage-agnostic resolvers and a lookup_context to enable caching and SQL or DB templates, cites a surprising 7% compliance stat and reports the desert plugin shrinking from thousands to 50 lines, demonstrating these changes actually work.

AI-written summary · about

  1. 0:00Start
  2. 16:02Be suspicious of any use of Constant.foo
  3. 18:05Turn off caching?
  4. 20:46Stop worrying about allocations
  5. 21:11Object allocation is essentially free
  6. 24:251. Files, files everywhere!
  7. 26:50Logic to make path is everywhere
  8. 35:34Again, tests are the canary in the coal mine
  9. 36:36Use Modules
  10. 38:45Use ActiveSupport:: Concern
  11. 40:27Questions?
~/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.