
Metaprogramming Ruby
Paolo Perrotta · 2010
Programming and computer science › Ruby and Rails
#1,062 most recommended
Hacker News
49
mentions by 39 people · top 7% of 15,732 books
Open Library
4.25★★★★★★★★★★
4 ratings · 3 want to read
Wikipedia
—
No article yet
About the book
Metaprogramming Ruby covers how Ruby programs can inspect and change their own structure at runtime, with the object model as the foundation. It spans classes and modules, method lookup, singleton classes, blocks, and the techniques built on them, such as defining methods dynamically and writing domain-specific languages. Ruby's openness, where classes can be reopened and methods can be defined, intercepted, or generated during execution, makes metaprogramming a practical everyday tool rather than an arcane trick. The book's central claim is that using this power well depends on understanding the object model precisely, including how method lookup and self work. Once that model is clear, the common mechanisms of frameworks such as Rails become understandable and reproducible.
Written by Claude from what it knows of this book.
What Hacker News says 85% recommend · 3% critical
In the commenters’ own words
In Ruby, all methods have a receiver. In the case where no receiver is explicitly specified, it is assumed to be `self` - thus line 7 of semiquaver's example…
So I did Dev Bootcamp: we learned the basics of programming in 8 weeks and covered a lot of guides and such. This is what I would recommend: Start with…
What Open Library readers say 4.25 from 4 ratings
- 52
- 41
- 31
- 20
- 10
- 3 want to read
- 0 reading
- 5 have read
Only 4 ratings: treat the average as a hint.
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
The threads it came up in
Details
- First published
- 2010
- ISBN
- 9781934356470
- Editions known
- 2 at Open Library
- Open Library
- OL16011611W
Object-oriented programming (Computer science)Ruby (Computer program language)
Read next: its neighbours on the mosaic
Crafting rails applicationsJose Valim · 2011 · recommended by 8 people · 2 people recommended both
Design Patterns in RubyRuss Olsen · 2007 · recommended by 15 people · 3 people recommended both
Programming Ruby 1.92010 · recommended by 11 people · similar by subject and what people say about it
The art of RailsEdward Benson · 2008 · recommended by 4 people · similar by subject and what people say about it
Ruby under a microscopePat Shaughnessy · 2014 · recommended by 32 people · 3 people recommended both
Eloquent RubyRuss Olsen · 2011 · recommended by 44 people · 2 people recommended both
Ruby on Rails tutorialMichael Hartl · 2012 · recommended by 205 people · 3 people recommended both
The RSpec BookDavid Chelimsky · 2010 · recommended by 8 people · similar by subject and what people say about it
Eloquent JavascriptMarijn Haverbeke · 2009 · recommended by 226 people · 3 people recommended both
Practical Object Oriented Design In RubySandi Metz · 2012 · recommended by 46 people · 3 people recommended both
The Rails wayObie Fernandez · 2008 · recommended by 22 people · similar by subject and what people say about it
Coders at WorkPeter Seibel · 2009 · recommended by 126 people · 3 people recommended both
Land of LispConrad Barski · 2010 · recommended by 124 people · 2 people recommended both
The well-grounded RubyistDavid A. Black · 2009 · recommended by 31 people · similar by subject and what people say about it
Realm of RacketForrest Bice · 2013 · recommended by 37 people · similar by subject and what people say about it
Agile web development with railsDave Thomas · 2006 · recommended by 67 people · similar by subject and what people say about it
Ruby Best PracticesGregory Brown · recommended by 8 people · similar by subject and what people say about it
The Pragmatic ProgrammerAndy Hunt · 1999 · recommended by 353 people · 2 people recommended both
Expert C programming!Peter Van der Linden · 1994 · recommended by 88 people · similar by subject and what people say about it
Practical Object-Oriented DesignSandi Metz · 2018 · recommended by 14 people · similar by subject and what people say about it
Growing object-oriented softwareSteve Freeman · 2009 · recommended by 16 people · similar by subject and what people say about it
Clean CodeRobert C. Martin · 2008 · recommended by 298 people · 2 people recommended both
Higher-Order PerlMark Jason Dominus · 2005 · recommended by 74 people · similar by subject and what people say about it
Programming PerlLarry Wall · 1991 · recommended by 90 people · similar by subject and what people say about it