Home > Store

Practical Object-Oriented Design in Ruby: An Agile Primer

Register your product to gain access to bonus material or receive a coupon.

Practical Object-Oriented Design in Ruby: An Agile Primer

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2013
  • Dimensions: 7" x 9-1/8"
  • Pages: 272
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-72133-0
  • ISBN-13: 978-0-321-72133-4

The Complete Guide to Writing More Maintainable, Manageable, Pleasing, and Powerful Ruby Applications

Ruby’s widely admired ease of use has a downside: Too many Ruby and Rails applications have been created without concern for their long-term maintenance or evolution. The Web is awash in Ruby code that is now virtually impossible to change or extend. This text helps you solve that problem by using powerful real-world object-oriented design techniques, which it thoroughly explains using simple and practical Ruby examples.

Sandi Metz has distilled a lifetime of conversations and presentations about object-oriented design into a set of Ruby-focused practices for crafting manageable, extensible, and pleasing code. She shows you how to build new applications that can survive success and repair existing applications that have become impossible to change. Each technique is illustrated with extended examples, all downloadable from the companion Web site, poodr.info.

The first title to focus squarely on object-oriented Ruby application design, Practical Object-Oriented Design in Ruby will guide you to superior outcomes, whatever your previous Ruby experience. Novice Ruby programmers will find specific rules to live by; intermediate Ruby programmers will find valuable principles they can flexibly interpret and apply; and advanced Ruby programmers will find a common language they can use to lead development and guide their colleagues.

This guide will help you

  • Understand how object-oriented programming can help you craft Ruby code that is easier to maintain and upgrade
  • Decide what belongs in a single Ruby class
  • Avoid entangling objects that should be kept separate
  • Define flexible interfaces among objects
  • Reduce programming overhead costs with duck typing
  • Successfully apply inheritance
  • Build objects via composition
  • Design cost-effective tests
  • Solve common problems associated with poorly designed Ruby code

Extras

Author's Site

Author suggested site: sandimetz.com

Sample Content

Sample Pages

Download the sample pages (includes Chapter 3 and Index)

Table of Contents

  • Foreword
  • Introduction
  • Acknowledgments
  • About the Author
  • Chapter 1: Object-Oriented Design
  • Chapter 2: Designing Classes with a Single Responsibility
  • Chapter 3: Managing Dependencies
  • Chapter 4: Creating Flexible Interfaces
  • Chapter 5: Reducing Costs with Duck Typing
  • Chapter 6: Acquiring Behavior Through Inheritance
  • Chapter 7: Sharing Role Behavior with Modules
  • Chapter 8: Combining Objects with Composition
  • Chapter 9: Designing Cost-Effective Tests
  • Index  

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.