If I had to pick two..
Design Patterns in Ruby
It's more than just a naïve translation of the classic GoF patterns
I liked the way that Olsen avoided doing bare minimum implementations. So when looking at the Composite pattern, he spruces things up with a little operator overloading. And where ruby affords a number of possible approaches, these get discussed and compared (like with the Decorator pattern).
The final chapters in the book present a few additional patterns that go beyond the GoF and are particularly topical and relevant for ruby: DSLs, meta-programming, and convention over configuration.
In short, Design Patterns in Ruby
The second book I'd stowaway with is Ruby Best Practices
It doesn't pretend to be encyclopedic in the manner of The Ruby Way.
Clear examples are accompanied by thoughtful and full treatments of the subject at hand. It has particularly useful focus on "Mastering the Dynamic Toolkit", "Text Processing", "Functional Programming Techniques", and "Designing Beautiful APIs".
So they're my picks. Now, obviously these are not ideal books for learning ruby from scratch, but once you're past the basics these are the two at the top of my pile;-)
Anyone willing to counter with their top two picks? Agree or disagree with my choice?
Soundtrack for this post: I Like Your Old Stuff Better than Your New Stuff - Regurgitator from the album Unit Re-Booted
No comments:
Post a Comment