~/talk

Metaprogramming Isn't Real, It Can't Hurt You

Talkat RubyConf TH 2026 · 2026-01-31..02-01· [ruby]
slides:none on file

Metaprogramming is framed as an implementation technique not a mystical danger: a JSON serializer called Alba — 2M downloads evolves from v1.0 (Apr 2021) to 3.10 (released ~3 months ago) across 894 commits, using define_method, eval, public_send → generated method strings, instance_exec and binding.local_variable_get to implement conditional attributes, typed attributes and big-performance wins by avoiding repeated public_send. Recommendation: design the interface first, isolate metaprogramming into encapsulated implementation layers, and prefer it only when no simpler solution exists.

AI-written summary · about

  1. 0:00Introduction
  2. 2:14Metaprogramming feels unreal
  3. 8:45Metaprogramming defined
  4. 14:29Alba’s conditional attributes
  5. 23:10Optimization via metaprogramming
  6. 27:11Metaprogramming lessons
  7. 32:08Conclusion
~/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.