Jump to ratings and reviews
Rate this book

Addison-Wesley Professional Ruby Series

Practical Object Oriented Design in Ruby

Rate this book
The Complete Guide to Writing More Maintainable, Manageable, Pleasing, and Powerful Ruby Applications Ruby’s widely admired ease of use has a 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

247 pages, Paperback

First published July 2, 2012

Loading...
Loading...

About the author

Sandi Metz

4 books198 followers
Sandi Metz is a programmer, teacher, author, and sometime consultant. In the past 30+ years she has written innumerable applications and creates practical solutions that produce working software that is easy to change. She has spoken about object-oriented design and refactoring at international Ruby conferences since 2009.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1,800 (63%)
4 stars
791 (27%)
3 stars
191 (6%)
2 stars
34 (1%)
1 star
13 (<1%)
Displaying 1 - 2 of 2 reviews
Profile Image for Minh Nhật.
96 reviews84 followers
September 26, 2019
cuốn hay thứ 2, sau Structure and Interpretation of Computer Programs, hay hơn cả mấy cuốn kinh điển của Martin Flower, Uncle Bob, GoF... cực kì liên quan tới những gì đã trải qua, đọc xong áp dụng vô ngay và thấy được kết quả chứ không phải lăn tăn quá nhiều khi áp dụng architect, design pattern.

Dùng từ ngữ đơn giản, không cố chế ra mấy cải jargon vớ vẩn làm màu.
Profile Image for Phat Duong.
83 reviews27 followers
June 17, 2019
Là một lập trình viên Ruby cũng được 4 năm rồi, mà mãi giờ này, mình mới có kiên nhẫn đọc và đọc hết quyển Practical Object Oriented Design in Ruby (2nd edition), dù đã mua quyển này từ khá lâu.
Cảm nhận của mình, quyển này đi rất chi tiết (nhiều khi cảm thấy Sandi viết khá dài dòng, đây có lẽ là điểm trừ duy nhất). Dù quyển sách có tên Practical Object Oriented Design in Ruby, nhưng sách chỉ sử dụng ngôn ngữ Ruby để làm code mẫu minh họa, nếu bạn đang làm việc với một ngôn ngữ lập trình hướng đối tượng, hoặc muốn tìm hiểu về nó, và có thôi thúc muốn viết code tốt, một chương trình đẹp, dễ thay đổi, thì mình khuyên bạn nên đọc.
Displaying 1 - 2 of 2 reviews