~/talk

Thinking in Objects

Talkat RubyConf 2012 · 2012-11-01..11-03· [ruby]
slides:none on file

Argues Ruby is best approached from objects as identity, behavior, and state, not mixed procedural habits, and that the real mechanism is messages with late/dynamic binding. Recommends encapsulation and polymorphism (duck typing) over passing hashes-with- type and giant case statements. Advises composition/delegation instead of deep inheritance, shows a concrete refactor: collapse a three-level conditional by adding aliases to a Variant class so the same scope message dispatches polymorphically. Warns against calling methods directly via bound Method objects.

AI-written summary · about

  1. 0:00Introduction
  2. 3:59OOP core concepts
  3. 8:07Object identity behavior state
  4. 13:25State encapsulation uniform access
  5. 16:33Polymorphism duck typing
  6. 17:17Object-based vs OO languages
  7. 18:22Inheritance risks alternatives
  8. 21:08Delegation vs inheritance Ruby
  9. 23:16Message passing importance
  10. 25:46Ruby programs use objects
  11. 27:31Reification behavior attractors
  12. 29:40Polymorphism in Ruby
  13. 33:14Summary call to action
~/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.