Binding: Hardcover Dewey Decimal Number: 005.117 EAN: 9780321490452 ISBN: 0321490452 Label: Addison-Wesley Professional Manufacturer: Addison-Wesley Professional Number Of Items: 1 Number Of Pages: 384 Publication Date: December 20, 2007 Publisher: Addison-Wesley Professional Sales Rank: 163322 Studio: Addison-Wesley Professional
'Design Patterns in Ruby documents smart ways to resolve many problems that Ruby developers commonly encounter. Russ Olsen has done a great job of selecting classic patterns and augmenting these with newer patterns that have special relevance for Ruby. He clearly explains each idea, making a wealth of experience available to Ruby developers for their own daily work.'
—Steve Metsker, Managing Consultant with Dominion Digital, Inc.
'This book provides a great demonstration of the key 'Gang of Four' design patterns without resorting to overly technical explanations. Written in a precise, yet almost informal style, this book covers enough ground that even those without prior exposure to design patterns will soon feel confident applying them using Ruby. Olsen has done a great job to make a book about a classically 'dry' subject into such an engaging and even occasionally humorous read.'
—Peter Cooper
'This book renewed my interest in understanding patterns after a decade of good intentions. Russ picked the most useful patterns for Ruby and introduced them in a straightforward and logical manner, going beyond the GoF's patterns. This book has improved my use of Ruby, and encouraged me to blow off the dust covering the GoF book.'
—Mike Stok
'Design Patterns in Ruby is a great way for programmers from statically typed objectoriented languages to learn how design patterns appear in a more dynamic, flexible language like Ruby.'
—Rob Sanheim, Ruby Ninja, Relevance
Most design pattern books are based on C++ and Java. But Ruby is different—and the language's unique qualities make design patterns easier to implement and use. In this book, Russ Olsen demonstrates how to combine Ruby's power and elegance with patterns, and write more sophisticated, effective software with far fewer lines of code.
After reviewing the history, concepts, and goals of design patterns, Olsen offers a quick tour of the Ruby language—enough to allow any experienced software developer to immediately utilize patterns with Ruby. The book especially calls attention to Ruby features that simplify the use of patterns, including dynamic typing, code closures, and 'mixins' for easier code reuse.
Fourteen of the classic 'Gang of Four' patterns are considered from the Ruby point of view, explaining what problems each pattern solves, discussing whether traditional implementations make sense in the Ruby environment, and introducing Ruby-specific improvements. You'll discover opportunities to implement patterns in just one or two lines of code, instead of the endlessly repeated boilerplate that conventional languages often require.
Design Patterns in Ruby also identifies innovative new patterns that have emerged from the Ruby community. These include ways to create custom objects with metaprogramming, as well as the ambitious Rails-based 'Convention Over Configuration' pattern, designed to help integrate entire applications and frameworks.
Engaging, practical, and accessible, Design Patterns in Ruby will help you build better software while making your Ruby programming experience more rewarding.
Customer Reviews
Average Rating:
Rating: - Excellent introduction to Ruby for existing programmers
If you're already a programmer, this book an excellent way to learn Ruby. It shows how to apply a variety of common and largely language-independent programming structures ("design patterns") in "the Ruby way". Along the way, you get a great introduction to what makes Ruby unique, and the idioms commonly used in the Ruby community. I especially liked that the author often showed multiple implementations of each pattern, each implementation being more elegant and Ruby-esque than the last, and included ... Read More
Rating: - Advanced Ruby programming styles and idioms
This is a marvelous book, ideal if you're an experienced object-oriented programmer who wants to learn to use Ruby with the idioms particular to it, and not remain frozen in the techniques of traditional, statically typed object-oriented languages. Ruby is a dynamically typed language with many unique features, and this book was invaluable in my learning to use it as such. There are 16 design patterns covered, 3 of which are particular to the Ruby development environment. With each pattern is presented ... Read More
Rating: - Design Patterns make sense with this book in Ruby
I never really understood the need for Design Patterns. After reading several blogs, and listening to other programmers, I thought that Design Patterns might even somehow be harmful to my programming education. I felt that just by learning what they were, I'd somehow pollute my thinking to the point where I wouldn't be able to program without seeing a pattern in there somewhere. When I heard of the book Design Patterns in Ruby, I flinched. What good could possibly come from introducing Design Patterns into ... Read More
Rating: - Best Design Book I've Read Yet
By far the most accessible design book I have read. The author not only explains the pattern and the reasons for its use, he then goes on to show a traditional implementation of the pattern followed by a Ruby-specific implementation. By far the best design patterns book I have read yet.
Rating: - Engaging and Educational
I am a Java developer whose Ruby experience is limited to firing up the interactive Ruby shell for a Hello World, or reading the first chapters of Programming Ruby before drifting away and vowing to learn Ruby "when I have more time". I work with the author, and purchased this book solely on the strength of his training courses and lectures. Russ Olsen in book-format is just as effective a teacher as he is in person.
The book is a hybrid reference/Ruby-introduction book which provides the best ... Read More