Metaprogramming Ruby: Program Like the Ruby Pros

Metaprogramming Ruby: Program Like the Ruby Pros

Paolo Perrotta

Everyone within the Ruby global appears conversing approximately metaprogramming--how you should use it to take away duplication on your code and write dependent, attractive courses. you can now get in at the motion as well.

This publication describes metaprogramming as a vital part of Ruby. when you comprehend the rules of Ruby, together with the thing version, scopes, and eigenclasses, you are in your technique to using metaprogramming either on your day-by-day paintings and on your enjoyable, after-hours projects.

studying metaprogramming does not must be tricky or uninteresting. through taking you on a Monday-through-Friday workweek experience with a couple of programmers, Paolo Perrotta is helping make learning the artwork of metaprogramming either effortless and entertaining.

The booklet is packed with:

Pragmatic examples of metaprogramming in motion, a lot of which come directly from renowned libraries or frameworks, reminiscent of Rails. Programming demanding situations that allow you to scan and play with the most enjoyable, "out-there" metaprogramming techniques. Metaprogramming spells--34 sensible recipes and idioms for you to examine and practice without delay, to write down code that's guaranteed to impress.

even if you are a Ruby apprentice at the route to learning the language or a Ruby wiz looking for new tips, this ebook is for you.

Show sample text content

Download sample