Ruby metaprogramming from scratch, talk @ Ruby underground

Ruby metaprogramming from scratch, talk @ Ruby underground

A burgeoning but vibrant Ruby developer community meets up once a month in the Tel-Aviv area, thanks to the efforts of Roy Osherove and some leading Ruby developers. I had the honor to conduct a talk this time (December), and my subject was metaprogramming from scratch. Since this is normally considered an advanced subject, I took the approach to explain core concepts through runnable code snippets that the participants could feed instantly into an interactive shell and see the results. The main exercise was a custom implementation of the Ruby built-in method "attr_accessor" using metaprogramming techniques.

Here are the slides, and here are the exercise files. I used showoff, an open source project, as the presentation software, and I really liked the experience. Recommended. 

P.S. Follow me on Twitter.

Daniel Szmulewicz 19 December 2011
blog comments powered by Disqus