~/talk

What's Wrong With Ruby's Object Model (And Why That's a Good Thing)

Talkat MountainWest RubyConf 2012 · 2012-03-15..03-16· [ruby]
slides:none on file

A messy procedural Ruby script that draws planner-sheet PDFs uses the Prawn gem, shells out to md5 for acceptance tests, and wraps File.open to allow stubbing; it ships and runs for two months. Refactoring extracts a Planner class into bin/lib, replaces magic numbers and manual loops with Ruby iterators, and collapses duplicated test setup; tests fail twice and reveal API regressions. Claim: Ruby’s pliability and fluidity enable incremental refactors, surprising discoveries, and workable DSLs without a full rewrite.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50History of split brains
  3. 5:18The right side of the brain
  4. 10:23Formalism vs hermeneutics
  5. 13:19Refactoring
  6. 15:53Testing
  7. 18:30Ruby is pliable
  8. 20:38The old way
  9. 24:43The nasty stuff
~/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.