~/talk

Refactoring Rails

Talkat Ru3y Manor 3 · on Saturday, 2011-11-05· [ruby-on-rails]
links:none on file
slides:none on file

Implements nested through associations in Rails 3 by turning association reflections into linear chains (recursing to leaf reflections) and generating identical SQL joins for different association shapes; splits the collection proxy from the association (avoiding method_missing recursion), replaces a tangled preload module with an object hierarchy using polymorphism and single-responsibility, fixes many Lighthouse-reported bugs and adds tests. Patch complexity drops from +342 lines to +94 lines and the feature merges after ~6 months.

AI-written summary · about

  1. 0:00Start
  2. 3:17Project
  3. 7:20Use good data structures
  4. 13:19Association Proxy
  5. 19:07Object Oriented Programming!
  6. 21:21Many or repeated
  7. 22:34Long methods lots of variables
  8. 25:12Learn from the mistakes of others.
~/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.