Taryn Rose

Practical Object-Oriented Design: An Agile Primer Using Ruby by Sandi Metz

Description: About this productProduct InformationThe 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 codeProduct IdentifiersPublisherAddison-Wesley ProfessionalISBN-100321721330ISBN-139780321721334eBay Product ID (ePID)113352783Product Key FeaturesAuthorSandi MetzPublication NamePractical Object-Oriented Design : an Agile Primer Using RubyFormatTrade PaperbackLanguageEnglishFeaturesRevisedPublication Year2012SeriesAddison-Wesley Professional Ruby Ser.TypeTextbookNumber of Pages272 PagesDimensionsItem Length9.1in.Item Height0.7in.Item Width6.9in.Item Weight15.1 OzAdditional Product FeaturesLc Classification NumberQa76.64.M485 2013Edition DescriptionRevised EditionReviews"This is great stuff! Your descriptions are so vibrant and vivid that I'm rediscovering the truth buried in OO principles that are otherwise so internalized that I forget to explore them. Your thoughts on design and knowing the future are especially eloquent." Ian McFarland, President, New Context, Inc. "As a self-taught programmer, this was an extremely helpful dive into some OOP concepts that I could definitely stand to become better acquainted with! And, I'm not alone: there's a sign posted at work that reads, 'WWSMD? - What Would Sandi Metz Do?'" Jonathan Mukai, Pivotal in NYC "Meticulously pragmatic and exquisitely articulate, Practical Object Oriented Design in Ruby makes otherwise elusive knowledge available to an audience which desperately needs it. The prescriptions are appropriate both as rules for novices and as guidelines for experienced professionals." Katrina Owen, developer, Bengler "I do believe this will be the most important Ruby book of 2012. Not only is the book 100% on-point, Sandi has an easy writing style with lots of great analogies that drive every point home." Avdi Grimm, Author of Exceptional Ruby and Objects on RailsTable of ContentForeword xv Introduction xvii Acknowledgments xxi About the Author xxiii Chapter 1: Object-Oriented Design 1 In Praise of Design 2 The Tools of Design 4 The Act of Design 7 A Brief Introduction to Object-Oriented Programming 11 Summary 14 Chapter 2: Designing Classes with a Single Responsibility 15 Deciding What Belongs in a Class 16 Grouping Methods into Classes 16 Organizing Code to Allow for Easy Changes 16 Creating Classes That Have a Single Responsibility 17 Writing Code That Embraces Change 24 Finally, the Real Wheel 33 Summary 34 Chapter 3: Managing Dependencies 35 Understanding Dependencies 36 Writing Loosely Coupled Code 39 Managing Dependency Direction 51 Summary 57 Chapter 4: Creating Flexible Interfaces 59 Understanding Interfaces 59 Defining Interfaces 61 Public Interfaces 62 Private Interfaces 62 Responsibilities, Dependencies, and Interfaces 62 Finding the Public Interface 63 Writing Code That Puts Its Best (Inter)Face Forward 76 The Law of Demeter 80 Summary 83 Chapter 5: Reducing Costs with Duck Typing 85 Understanding Duck Typing 85 Writing Code That Relies on Ducks 95 Conquering a Fear of Duck Typing 100 Summary 104 Chapter 6: Acquiring Behavior Through Inheritance 105 Understanding Classical Inheritance 105 Recognizing Where to Use Inheritance 106 Misapplying Inheritance 114 Finding the Abstraction 116 Managing Coupling Between Superclasses and Subclasses 129 Summary 139 Chapter 7: Sharing Role Behavior with Modules 141 Understanding Roles 142 Writing Inheritable Code 158 Summary 162 Chapter 8: Combining Objects with Composition 163 Composing a Bicycle of Parts 164 Composing the Parts Object 168 Manufacturing Parts 176 The Composed Bicycle 180 Deciding Between Inheritance and Composition 184 Summary 190 Chapter 9: Designing Cost-Effective Tests 191 Intentional Testing 192 Testing Incoming Messages 200 Testing Private Methods 213 Testing Outgoing Messages 215 Testing Duck Types 219 Testing Inherited Code 229 Summary 240 Afterword 241 Index 243Copyright Date2013Target AudienceScholarly & ProfessionalTopicProgramming Languages / General, Programming / Object Oriented, Programming Languages / RubyLccn2012-026008Dewey Decimal005.1/17Dewey Edition23IllustratedYesGenreComputers

Price: 6.9 USD

Location: Multiple Locations

End Time: 2024-11-14T22:35:15.000Z

Shipping Cost: 3.97 USD

Product Images

Practical Object-Oriented Design: An Agile Primer Using Ruby by Sandi Metz

Item Specifics

Return shipping will be paid by: Seller

All returns accepted: Returns Accepted

Item must be returned within: 30 Days

Refund will be given as: Money Back

Return policy details:

Edition: 1st

Publish Year: 2012

Updated ISBN1: 0134456475

Updated ISBN2: 9780134456478

Number of Pages: 272 Pages

Language: English

Publication Name: Practical Object-Oriented Design : an Agile Primer Using Ruby

Publisher: Addison Wesley Professional

Item Height: 0.7 in

Subject: Programming Languages / General, Programming / Object Oriented, Programming Languages / Ruby

Publication Year: 2012

Features: Revised

Item Weight: 15.1 Oz

Type: Textbook

Author: Sandi Metz

Item Length: 9.1 in

Subject Area: Computers

Series: Addison-Wesley Professional Ruby Ser.

Item Width: 6.9 in

Format: Trade Paperback

Recommended

UML for the IT Business Analyst: A Practical Guide to Object-Oriented...
UML for the IT Business Analyst: A Practical Guide to Object-Oriented...

$7.21

View Details
UML and C++: A Practical Guide to Object-Oriented Development (2
UML and C++: A Practical Guide to Object-Oriented Development (2

$13.65

View Details
Practical Object-Oriented Design in Ruby: An Agile Primer by Metz, Sandi
Practical Object-Oriented Design in Ruby: An Agile Primer by Metz, Sandi

$5.21

View Details
Object-Oriented Design with ABAP: A Practical Approach by James E McDonough: New
Object-Oriented Design with ABAP: A Practical Approach by James E McDonough: New

$49.23

View Details
Practical Object-Oriented Development in C++ and Java By Cay S.
Practical Object-Oriented Development in C++ and Java By Cay S.

$15.52

View Details
Practical Object-Oriented Design in Ruby: An Agile Primer by Metz, Sandi
Practical Object-Oriented Design in Ruby: An Agile Primer by Metz, Sandi

$4.48

View Details
Practical Guide to Testing Object-Oriented Software
Practical Guide to Testing Object-Oriented Software

$8.19

View Details
UML and C++: A Practical Guide to Object-Oriented Development Lee, Richard C. ..
UML and C++: A Practical Guide to Object-Oriented Development Lee, Richard C. ..

$12.87

View Details
Practical Object-Oriented Development in C++ and Java by Horstmann, Cay S.
Practical Object-Oriented Development in C++ and Java by Horstmann, Cay S.

$5.62

View Details
Practical Object-Oriented Design: An Agile Primer Using Ruby, Metz, Sandi, 97801
Practical Object-Oriented Design: An Agile Primer Using Ruby, Metz, Sandi, 97801

$34.05

View Details