~/talk

RUBY MAGIC

Talkat Grill.rb 2017 · 2017-07-01..07-02· [ruby]
links:none on file
slides:none on file

Live IRB demo builds a tiny gem that monkey patches core classes and then breaks obvious code: arrays modeled as cups shuffle works, a Box class with contents works, but redefining Array#join makes splitting and rejoining a "Donald Trump" string fail unexpectedly. Shows how ActiveSupport adds helpers like Array#second, causing surprising provenance of methods, cites Ernie Miller’s intervention, and argues for explicit alternatives such as dry-rb and trailblazer instead of pervasive magic.

AI-written summary · about

  1. 0:00Introduction to Ruby magic
  2. 2:48Live coding cup trick
  3. 5:24Box class and Trump string trick
  4. 8:44Critique of Ruby magic
  5. 12:06Explicit vs implicit code
  6. 14:14Conclusion and Q&A
~/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.