~/talk

Meta-programming for Dummies

Talkat RedDotRubyConf 2017 · 2017-06-22..06-23· [ruby, software-architecture]
slides:none on file

Shows how Ruby meta-programming replaces repetitive getters with a custom attribute_accessor implementation, how ActiveRecord introspects schema to add attributes, and how the workflow gem style DSL generates state-transition methods so ten states avoid hundreds of hand-written methods. Reports using a DSL to factor attachments across 20–30 models, notes hidden includes can cost hours debugging, recommends keeping meta code modular, documenting and testing behavior, and avoiding catch-all method_missing unless you also implement respond_to_missing.

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.