~/talk

Meta-programming for Dummies

Talkat Red Dot Ruby Conference 2017 · 2017-06-22..06-23· [ruby]
slides:none on file

Explains practical Ruby metaprogramming: uses attribute_accessor and ActiveRecord’s runtime column injection, builds a workflow gem–style DSL that replaces dozens or hundreds of hand-written state methods and shows it working, and applies metaprogramming to solve repeating tasks across 20–30 models. Emphasizes concrete APIs used (instance_methods, define_method, class_eval), testing and documenting generated behavior, and specific pitfalls—most notably avoid method_missing unless carefully paired with respond_to_missing? and strong tests.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Why metaprogramming
  3. 2:35Definition
  4. 4:45ActiveRecordBase
  5. 8:49Summary
  6. 9:22Start method opening
  7. 10:14Modify behavior
  8. 12:02Integrate
  9. 12:58Keep it independent
  10. 14:29Readability
  11. 17:04Risks
  12. 17:43Questions
~/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.