Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
-65% $15.64$15.64
Ships from: Amazon Sold by: numberonestore
$11.73$11.73
Ships from: Amazon Sold by: Martistore
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
OK
Practical Object-Oriented Design in Ruby: An Agile Primer (Addison-Wesley Professional Ruby) First Edition
There is a newer edition of this item:
$44.19
(198)
Only 1 left in stock - order soon.
Purchase options and add-ons
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
- ISBN-100321721330
- ISBN-13978-0321721334
- EditionFirst Edition
- PublisherAddison-Wesley Professional
- Publication dateJanuary 1, 2013
- LanguageEnglish
- Dimensions7 x 0.8 x 9 inches
- Print length247 pages
Frequently bought together
Customers who viewed this item also viewed
Editorial Reviews
About the Author
Product details
- Publisher : Addison-Wesley Professional; First Edition (January 1, 2013)
- Language : English
- Paperback : 247 pages
- ISBN-10 : 0321721330
- ISBN-13 : 978-0321721334
- Item Weight : 1.2 pounds
- Dimensions : 7 x 0.8 x 9 inches
- Best Sellers Rank: #1,180,198 in Books (See Top 100 in Books)
- #67 in Ruby Programming
- #486 in Object-Oriented Design
- #711 in Data Processing
- Customer Reviews:
About the author
I am a programmer. In the past 30+ years I have written innumerable applications, many of which are still running today. Dealing with long lived applications has left me deeply biased towards practical solutions that produce working software that is easy to change.
I am also someone who explains things, but I have difficulty speaking without drawing on the whiteboard and feel inarticulate unless the conversation includes at least three colors.
I believe in simplicity; simple code, and straightforward explanations, and strive for it in my code and in my writing.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
I believe that in 20 years, this will be considered one of the definitive works on Object-Oriented Programming. The author provides a smooth on-ramp from basic OO programming principles, and builds on it until you're able to understand the kinds of lessons that normally only come from decades of day-in, day-out experience working in OO code.
What's unusual about this book?
- It reads your mind.
The author takes enormous care to empathize with the reader. Many times, you'll find yourself reading and thinking something, only to read "you're probably thinking at this point..." with your exact thought or concern.
- The author is okay with sounding like a human being.
The author's colloquial style peeks through over and over again. I kept getting caught off guard by delightful little turns of phrase that one does not see often in programming books.
- The lessons are grounded in reality.
Since Ms. Metz keeps the examples surprisingly close to production code (though a somewhat simplified version), you don't have to reach very far to figure out how you'd apply these lessons. Examples aren't contrived to prove a point, they are real-life situations that demand a solution, which always seems to be presented at just the right time. While reading, you'll find yourself exclaiming when she pinpoints the exact source of pain that you run into frequently.
- Sections end, rather than begin, with a principle.
This is the first book about Object-Oriented design I've read that doesn't clobber you over the head with jargon or come in with a top-down approach. Most technical books start with an assertion, pattern, or hypothesis, then spend the rest of the book explaining and trying to convince you. Ms. Metz takes the longer, more difficult approach of organically working through a typical Object-Oriented application, growing it, feeling pain, and addressing that pain. Along the way, she points out where these pain points are addressed, and only then does she explain that there is a name for the solution,
- It is immediately beneficial.
For my part, I couldn't wait to go back and apply all the lessons I learned to code that I'd written that I wasn't happy with and couldn't figure out why. I've used the lessons from this book to help guide my intuition about the kind of code that lends itself to long-term maintainability.
- It contains no religious zealotry.
There's no preachiness: it's all about strategies, tactics, and tradeoffs a software developer employs to reach a desired goal. It also has the most concise and articulate overview of testing styles I've ever seen. Many programming books lose the forest for the trees, focusing on a pattern, principle, tool, or technique, touting it as *the* solution to all your programming problems. Ms. Metz never falls into that trap, and keeps the focus on writing code that can meet the changing needs of users for years to come.
- It is timeless.
Rather than a trendy new topic, this book could find itself applicable 25 years ago or 25 years from now. I believe it'll be regarded as a landmark volume on the topic of OO design, along with books like Kent Beck's Smalltalk Best Practice Patterns. It's obvious that lots of care, attention, and refinement went into this book, and the reader benefits greatly. I'm grateful to Sandy for writing this book, I plan to re-read it at least once a year to keep my OO skills from falling into atrophy.
I wish I could provide some negative feedback to balance the review, but I simply don't have any. If you're a relatively new, intermediate, or even somewhat advanced OO developer in any langauge, purchasing this book is the best way I know to level up your Object-Oriented design skills.
The term "design" in the title is not referring to making wild speculative guesses about the future and planning for any number of contingencies, it is about arranging the code so that it is understandable, and to minimize cost and pain.
There is a focus on designing the communication between objects as much as focusing on the structure of the objects themselves, which I found to be extremely interesting. This discussion helped clarify a lot of thoughts and ideas about abstractions and where responsibilities belong, as well as the directions of dependencies -- things that had been rattling around in my brain for a while but that I had trouble applying in the real world. Reading this let me put all these pieces together (and then some) into a coherent whole. Or at least a coherent seed of a whole.
The code examples are simple, but the author manages to wrangle some serious dramatic tension out of every line of code, and they illustrate the concepts covered well enough that I was able to make the leap to applying the concepts in much more complex code bases.
The chapter on testing was sublime. It took an immensely practical approach to which methods to test and which tests to write in order to avoid duplication and brittleness in both tests and designs.
I also appreciated that none of the discussions were about any sort of moral superiority. The discussions were about getting things done. The argument for arranging code nicely wasn't about aesthetics or professional duty, but rather about lowering cost and allowing you to make changes without causing expensive outages and making people frustrated.
Soap boxes? Sure. High horses? Nowhere in sight.
Note: I read a pre-release version of the book. I did not know the author at the time, but sent her quite a lot of feedback, which led to several conversations to clarify. When I waxed enthusiastic about the contents, she asked if she could forward this to the publisher, and a quote ended up in the paper copy.
Top reviews from other countries
Introduce buenas prácticas en el desarrollo de aplicaciones y en el diseño de aplicaciones orientadas a objetos poniendo de manifiesto técnicas o metodologías como SOLID, DRY, YAGNI, testing, etc.
Un libro altamente recomendado para programadores que quieran crear aplicaciones con un diseño excelente. Si además eres programador de Ruby, podrás exprimir al máximo el lenguaje.
¡Muy, muy recomendable!
With that background, I found this book a joy to read. Besides providing a great refresher of OO design principles using Ruby syntax, the author provides many tidbits from her experience of developing and maintaining systems over time that are as valuable as the OO principles themselves. Both her writing style, and the interesting analogies and coding examples are such that it's easy to breeze through a few chapters of this book without getting bored. As an early ruby developer, it was exactly what I needed to understand ruby's OO mechanisms while also having a great development refresher. Highly recommended!