Design Patterns in Ruby

ISBN-10: 0321490452

ISBN-13: 9780321490452

Edition: 2008

Authors: Russ Olsen

List price: $56.99 Buy it from $36.71
eBook available
This item qualifies for FREE shipping

*A minimum purchase of $35 is required. Shipping is provided via FedEx SmartPost® and FedEx Express Saver®. Average delivery time is 1 – 5 business days, but is not guaranteed in that timeframe. Also allow 1 - 2 days for processing. Free shipping is eligible only in the continental United States and excludes Hawaii, Alaska and Puerto Rico. FedEx service marks used by permission."Marketplace" orders are not eligible for free or discounted shipping.

30 day, 100% satisfaction guarantee

If an item you ordered from TextbookRush does not meet your expectations due to an error on our part, simply fill out a return request and then return it by mail within 30 days of ordering it for a full refund of item cost.

Learn more about our returns policy

Description:

Praise forDesign Patterns in Ruby "Design Patterns in Rubydocuments 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 GoFs 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 Rubyis 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 languages unique qualities make design patterns easier to implement and use. In this book, Russ Olsen demonstrates how to combine Rubys 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. Youll 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 Rubyalso 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 Rubywill help you build better software while making your Ruby programming experience more rewarding.
New Starting from $56.43
eBooks Starting from $45.99
Buy eBooks
what's this?
Rush Rewards U
Members Receive:
coins
coins
You have reached 400 XP and carrot coins. That is the daily max!
Study Briefs

Limited time offer: Get the first one free! (?)

All the information you need in one place! Each Study Brief is a summary of one specific subject; facts, figures, and explanations to help you learn faster.

Add to cart
Study Briefs
Sociology Online content $4.95 $1.99
Add to cart
Study Briefs
Business Ethics Online content $4.95 $1.99
Add to cart
Study Briefs
Business Law Online content $4.95 $1.99
Customers also bought
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Book details

List price: $56.99
Copyright year: 2008
Publisher: Addison Wesley Professional
Publication date: 12/10/2007
Binding: Hardcover
Pages: 384
Size: 7.40" wide x 9.55" long x 0.90" tall
Weight: 1.870
Language: English

Foreword
Preface
Acknowledgments
About the Author
Patterns and Ruby
Building Better Programs with Patterns
The Gang of Four
Patterns for Patterns
Separate Out the Things That Change from Those That Stay the Same
Program to an Interface, Not an Implementation
Prefer Composition over Inheritance
Delegate, Delegate, Delegate
You Ain't Gonna Need It
Fourteen Out of Twenty-Thre
Patterns in Ruby?
Getting Started with Ruby
Interactive Ruby
Saying Hello World
Variables
Fixnums and Bignums
Floats
There Are No Primitives Here
But Sometimes There Is No Object
Truth, Lies, and nil
Decisions, Decisions
Loops
More about Strings
Symbols
Arrays
Hashes
Regular Expressions
A Class of Your Own
Getting at the Instance Variables
An Object Asks: Who Am I?
Inheritance, Subclasses, and Superclasses
Argument Options
Modules
Exceptions
Threads
Managing Separate Source Files
Wrapping Up
Patterns in Ruby
Varying the Algorithm with the Template Method
Keeping Up with What Life Throws at You
Separate the Things That Stay the Same
Discovering the Template Method Pattern
Hook Methods
But Where Are All the Declarations?
Types, Safety, and Flexibility
Unit Tests Are Not Optional
Using and Abusing the Template Method Pattern
Templates in the Wild
Wrapping Up
Replacing the Algorithm with the Strategy
Delegate, Delegate, and Delegate Again
Sharing Data between the Context and the Strategy
Duck Typing Yet Again
Procs and Blocks
Quick-and-Dirty Strategies
Using and Abusing the Strategy Pattern
The Strategy Pattern in the Wild
Wrapping Up
Keeping Up with the Times with the Observer
Staying Informed
A Better Way to Stay Informed
Factoring Out the Observable Support
Code Blocks as Observers
Variations on the Observer Pattern
Using and Abusing the Observer Pattern
Observers in the Wild
Wrapping Up
Assembling the Whole from the Parts with the Composite
The Whole and the Parts
Creating Composites
Sprucing Up the Composite with Operators
An Array as a Composite?
An Inconvenient Difference
Pointers This Way and That
Using and Abusing the Composite Pattern
Composites in the Wild
Wrapping Up
Reaching into a Collection with the Iterator
External Iterators
Internal Iterators
Internal Iterators versus External Iterators
The Inimitable Enumerable
Using and Abusing the Iterator Pattern
Iterators in the Wild
Wrapping Up
Getting Things Done with Commands
An Explosion of Subclasses
An Easier Way
Code Blocks as Commands
Commands That Record
Being Undone by a Command
Queuing Up Commands
Using and Abusing the Command Pattern
The Command Pattern in the Wild
ActiveRecord Migrations
Madeleine
Wrapping Up
Filling in the Gaps with the Adapter
Software Adapters
The Near Misses
An Adaptive Alternative?
Modifying a Single Instance
Adapt or Modify?
Using and Abusing the Adapter Pattern
Adapters in the Wild
Wrapping Up
Getting in Front of Your Object with a Proxy
Proxies to the Rescue
The Protecti
×
Free shipping on orders over $35*

*A minimum purchase of $35 is required. Shipping is provided via FedEx SmartPost® and FedEx Express Saver®. Average delivery time is 1 – 5 business days, but is not guaranteed in that timeframe. Also allow 1 - 2 days for processing. Free shipping is eligible only in the continental United States and excludes Hawaii, Alaska and Puerto Rico. FedEx service marks used by permission."Marketplace" orders are not eligible for free or discounted shipping.

Learn more about the TextbookRush Marketplace.

×