~/talk

Eastward Ho! A Clear Path Through Ruby With OO Jim Gay

Talkat RubyConf 2014 · 2014-11-17..11-19· [ruby, frontend-architecture]
slides:none on file

Claims a concrete refactor: apply East-oriented Code to push behavior from Person into Address and a Template, reducing westward queries and fixing a formatting bug. Demonstrates rules—always return self, objects query themselves, factories exempt—shows before/after code, and builds a tiny gem that forwards commands (returns the receiver) so chained calls work. Tests insert a sandwich row to prove behavior; implementation is small, on GitHub, and the approach removes Demeter violations while keeping templates and privacy logic intact.

AI-written summary · about

  1. 0:00Start
  2. 1:55QUERIES COMMANDS
  3. 7:50Command, Don't Query
  4. 23:21POLYMORPHISM
  5. 23:37LOOSEN COUPLING
  6. 32:09CHANGE YOUR CODE
~/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.