~/talk

Advanced Ruby Class Design

Talkat RubyConf 2007 · 2007-11-02..11-04· [ruby]
slides:none on file

Three concrete examples: a lazy FileList for rake that uses delegation and to_ary rather than inheriting from Array to avoid unresolved concatenation bugs; builder that implements a blank_slate by undefining Object methods and patching method_added and append_features to hide late additions; and a Node-based translator that executes Ruby to build SQL fragments (using parse_tree mentioned as an alternative) but breaks on short‑circuit operators like && and || and suffers obvious performance pitfalls when it loads whole tables.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:23Philosophy of Ruby design
  3. 10:55Master of disguise example
  4. 23:29Blank slate technique
  5. 36:28Capturing code execution
  6. 59:32Conclusion
~/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.