Metaprogramming Ruby: Program Like the Ruby Pros and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $0.99 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading Metaprogramming Ruby: Program Like the Ruby Pros on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Metaprogramming Ruby: Program Like the Ruby Pros [Paperback]

Paolo Perrotta
4.5 out of 5 stars  See all reviews (29 customer reviews)

List Price: $32.95
Price: $20.13 & FREE Shipping on orders over $25. Details
You Save: $12.82 (39%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 18 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it tomorrow, May 24? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $15.40  
Paperback $20.13  
Unknown Binding --  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

February 22, 2010 1934356476 978-1934356470 1

Everyone in the Ruby world seems to be talking about metaprogramming--how you can use it to remove duplication in your code and write elegant, beautiful programs. Now you can get in on the action as well.

This book describes metaprogramming as an essential component of Ruby. Once you understand the principles of Ruby, including the object model, scopes, and eigenclasses, you're on your way to applying metaprogramming both in your daily work and in your fun, after-hours projects.

Learning metaprogramming doesn't have to be difficult or boring. By taking you on a Monday-through-Friday workweek adventure with a pair of programmers, Paolo Perrotta helps make mastering the art of metaprogramming both straightforward and entertaining.

The book is packed with:

Pragmatic examples of metaprogramming in action, many of which come straight from popular libraries or frameworks, such as Rails. Programming challenges that let you experiment and play with some of the most fun, "out-there" metaprogramming concepts. Metaprogramming spells--34 practical recipes and idioms that you can study and apply right now, to write code that is sure to impress.

Whether you're a Ruby apprentice on the path to mastering the language or a Ruby wiz in search of new tips, this book is for you.

Frequently Bought Together

Metaprogramming Ruby: Program Like the Ruby Pros + Eloquent Ruby (Addison-Wesley Professional Ruby Series) + Practical Object-Oriented Design in Ruby: An Agile Primer (Addison-Wesley Professional Ruby Series)
Price for all three: $75.35

Buy the selected items together


Editorial Reviews

About the Author

Paolo Perrotta has more than ten years of experience as a developer and writer. He worked for domains ranging from embedded to enterprise software, computer games, and web applications. These days, Paolo coaches agile teams for Yoox, a large Internet fashion shop, and teaches Java to developers throughout Europe. He lives in Bologna, Italy, with his girlfriend and a cat. He loves Ruby.


Product Details

  • Paperback: 296 pages
  • Publisher: Pragmatic Bookshelf; 1 edition (February 22, 2010)
  • Language: English
  • ISBN-10: 1934356476
  • ISBN-13: 978-1934356470
  • Product Dimensions: 7.5 x 1 x 9 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (29 customer reviews)
  • Amazon Best Sellers Rank: #47,120 in Books (See Top 100 in Books)

More About the Author

Paolo Perrotta speaks and writes about software development. He worked as a developer in domains that range from embedded to enterprise software, computer games, and web applications. These days, he mentors and coaches developers throughout Europe. He has a basecamp in Bologna, Italy. He loves Ruby.

Customer Reviews

Most Helpful Customer Reviews
47 of 48 people found the following review helpful
5.0 out of 5 stars Should really be titled "Thinking in Ruby" April 8, 2010
Format:Paperback|Amazon Verified Purchase
I've read quite a few Ruby books and this is one of the best. The author very effectively does a number of things in this book:

i) Highlights the conceptual differences between Ruby and other currently popular languages

ii) Shows how those conceptual differences are expressed in programming constructs by walking the reader through a number of small but realistic example problems

iii) Reviews internal details of a number of pieces of real-world software (most notably Rails) to show how the authors of these packages use the techniques he describes to solve their problems

iv) Provides a number of helpful and applicable guidelines on how to 'think in Ruby'

v) Generates a GoF style catalog of implementation patterns

vi) Skewers the notion that 'metaprogramming' is any different than regular programming

After finishing this book I have a real appreciation of the techniques the author describes, and how they can be used to write flexible, powerful, and maintainable software. Before reading this book I was aware of a number of these techniques, but I didn't necessarily understand how they could be effectively used to solve real problems. Now I do. The book truly covers how to think in Ruby - how to naturally solve problems in Ruby, as opposed to adapting techniques commonly used in languages from the C/C++/Java lineage.

The one major criticism I had of Metaprogramming Ruby was the 'fanboy' tone that permeates a lot of the text. Frequently the author seems more interested in getting you to agree with him that Ruby is great than in conveying the concepts being discussed. There are a lot of gratuitous slams of other languages (especially Java) that were frankly unnecessary and distracted from the book. Had the tone of those comparisons been a little more highbrow and a little less schoolyard, this would have been a better book.

Overall rating: 4.5 stars
Comment | 
Was this review helpful to you?
26 of 28 people found the following review helpful
5.0 out of 5 stars Short and sweet March 3, 2010
Format:Paperback
I have a BS and MS in Computer Science, and worked with Ruby professionally for two years. I've read every major Ruby book on the market. This book brought me to the next level. If you dig Ruby or Rails and are a programmer looking for the next step, this is it.
Comment | 
Was this review helpful to you?
13 of 13 people found the following review helpful
3.0 out of 5 stars I have a love-hate relationship with this book. December 18, 2011
Format:Paperback
Metaprogramming Ruby puts non-obvious and non-trivial content together into a coherent whole.

The technical content of this book is very, very good. The book explains much of the basic structure of ruby (object model, class definitions, blocks, method lookup, etc) in such a way that common idioms that I have previously used without understanding their underlying mechanisms now make complete sense, and my understanding and command of some of the more powerful features of ruby have greatly improved.

Real-world code examples drawn mostly from ruby gems are included, and these are excellent illustrations of ideas presented.

As with many technical books, many of the non-real-world code examples are extremely simple and contrived. For the most part, this is acceptable, but there are instances where the tests/sample output provided for exercises were incomplete -- in the sense that you can come up with a flawed and incomplete piece of code which will still make the test pass.

The thing about this book that drove me up the wall is the insipid story line: You have started a new job, and you have an incredibly chirpy and annoying coworker with whom you must pair program, and who lectures you about the ruby object model, etc. The dialogues are awful; Bill The Asinine Coworker "exclaims" and "shouts" much like characters in bad romance novels supposedly do. The text is littered with irrelevant and distracting details about sipping coffee and grabbing keyboards and ignoring whiteboards in favor of napkins.

This is possibly the best exposition of the ruby object model available, however, so if you are frustrated by the piecemeal information available on the web and you don't have a chirpy co-worker by the name of Bill to mentor you, I would highly recommend reading this book.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars A Ruby Essential
This book is the best all around source for all things (meta)programming in Ruby.

Since reading this, I have looked at a ton of other Ruby learning material (both on the... Read more
Published 5 months ago by Kevin Evans
3.0 out of 5 stars Great content, bad editing
This review is specifically for the Kindle version of the book. I'm be willing to be that the printed edition doesn't have the same errors. There are two show stopper problems. Read more
Published 5 months ago by Michael Nugent
1.0 out of 5 stars I wish I had read more of the reviews before purchasing
TLDR: If you prefer reading "...for Dummies" style books then this is probably the book for you. Otherwise stay away. Read more
Published 10 months ago by Brandon Fosdick
5.0 out of 5 stars Great read, never boring
This was a great book. I learned a ton, and the examples and reading was never tedious or repeated. Read more
Published 11 months ago by J. Smith
3.0 out of 5 stars Very good content in a condescending and distracting presentation
Reading this book is like being trapped in an all-day team building exercise.

There's a lot of good information, but you'll have to skim through a lot of bad dialog to... Read more
Published 16 months ago by TensOfThousands
4.0 out of 5 stars Really good despite the annoying style
Before anything else, I have to say I really didn't like the style the author chose for the first part of the book. Read more
Published 24 months ago by Michael Kohl
5.0 out of 5 stars I Love This Book!
I've been using Ruby for about 3 years now and thought I had a good understanding of the language and its capabilities. Wow, was I wrong! Read more
Published on April 24, 2011 by Anonymous
5.0 out of 5 stars Fascinating adventure into the world of Ruby, Friendship, and Tragedy
This book offers an amazing look into the beauty and power of Ruby. It has made me a better Rubyist. It is accessible and entertaining. Read more
Published on April 5, 2011 by jgoggles
5.0 out of 5 stars this book demystifies ruby magic
Anybody who has wondered about the magical code in Ruby source code and has had only a patchwork understanding of Ruby metaprogramming from various sources will find it all... Read more
Published on March 31, 2011 by Ming
3.0 out of 5 stars VERY Obnoxious to read, but good content!
If you want to learn in detail how Metaprogramming Ruby works, by all means: buy this book, it is very useful!

The content of the book is excellent! Read more
Published on February 18, 2011 by T.S.
Search Customer Reviews
Only search this product's reviews


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 



So You'd Like to...


Create a guide


Look for Similar Items by Category