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

Seeing Metaprogramming and Lambda Function Patt...

Numbluk
November 19, 2016

Seeing Metaprogramming and Lambda Function Patterns in Ruby

Metaprogramming and lambda functions in Ruby should be explained within their rightful place: living examples. You may have read tutorials on what these concepts are, but still do not understand when or why to use them. I dredged through over 50 prominent Open Source Ruby projects to bring you ten successful patterns that are used time and time again to create some of the most expressive and popular Ruby DSLs. Join me as we cover these patterns so that you can immediately begin using them in your own code to implement powerful DSLs. No vacuum-living, esoteric concepts here.

Numbluk

November 19, 2016
Tweet

Other Decks in Programming

Transcript

  1. Situation Solution Trust Issues Singleton Situational Language alias_method Leveraging Existing

    APIs Around Alias and Module#prepend Declarative DSLs Class Macros Domain Switching class_eval + Lambdas/Procs/Blocks Opening Doorways Hooks and Method Delegation Dynamic Building method_mising and const_missing