Upgrade to Pro — share decks privately, control downloads, hide ads and more …

In Defense of Metaprogramming

Noel Rappin
December 01, 2022

In Defense of Metaprogramming

If you’ve learned Ruby recently, you’ve likely been told to avoid using Ruby’s metaprogramming features because they are “dangerous”. Here at RubyConf, we laugh at danger. Or at least chuckle nervously at it. Ruby’s flexibility is one of the features that makes Ruby powerful, and ignoring it limits what you can do with the language. Plus, metaprogramming is fun. Let’s talk about when it makes sense to metaprogram, what parts of Ruby to use, and how to do it safely. You’ll leave with the tools to effectively metaprogram in your code.

Noel Rappin

December 01, 2022
Tweet

More Decks by Noel Rappin

Other Decks in Technology

Transcript