~/talk

SOLID Ruby

Talkat RubyConf 2009 · 2009-11-19..11-21· [ruby]
slides:none on file

Argues that SOLID still matters for Ruby but maps to code to protocols rather than interfaces, demonstrates SRP by splitting rake’s application and task manager, shows an XML::Builder example that uses the shovel protocol, reproduces the thermostat/furnace design to teach dependency inversion, uses sqrt implementations to explain Liskov substitution, warns against monkey‑patch clobbering of a logger and prefers subclassing, and shows a working Arduino Pomodoro flag project as a concrete build.

AI-written summary · about

  1. 0:00Start
  2. 2:21Great Fire of London
  3. 8:56Cars depend on Engines
  4. 9:38Car depends on Vehicle
  5. 12:37Single Responsiblity Principle
  6. 14:55Open/Closed Principle
  7. 28:06Liskov Substitution Principle
  8. 30:38Two Questions • What does the method require? • What does the method promise?
  9. 32:01Client Software
  10. 33:33Worse Promise - FAIL
  11. 35:16Complex Math Contract
  12. 35:29Less Restrictive Requirement - OK
  13. 37:03More Restrictive Requirement - FAIL
  14. 38:34Wildcard Keyboard/Display
  15. 40:05ISP with Protocols?
  16. 41:13For Discussion
~/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.