Practical Object-Oriented Design: An Agile Primer Using Ruby, 2/e (Paperback)

Sandi Metz

  • 出版商: Addison Wesley
  • 出版日期: 2018-08-22
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 288
  • 裝訂: Paperback
  • ISBN: 0134456475
  • ISBN-13: 9780134456478
  • 相關分類: RubyAgile SoftwareObject-oriented
  • 立即出貨 (庫存 < 3)



The Complete Guide to Writing Maintainable, Manageable, Pleasing, and Powerful Object-Oriented Applications



Object-oriented programming languages exist to help you create beautiful, straightforward applications that are easy to change and simple to extend. Unfortunately, the world is awash with object-oriented (OO) applications that are difficult to understand and expensive to change. Practical Object-Oriented Design, Second Edition, immerses you in an OO mindset and teaches you powerful, real-world, object-oriented design techniques with simple and practical examples.


Sandi Metz demonstrates 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 in the easy-to-understand Ruby programming language, all downloadable from the companion website, Fully updated for Ruby 2.5, this guide shows how to

  • Decide what belongs in a single 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

Whatever your previous object-oriented experience, this concise guide will help you achieve the superior outcomes you’re looking for.


Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.




Sandi Metz 示範如何建立能夠「應對成功」的新應用程式,並修復已變得無法更改的現有應用程式。每個技巧都以易於理解的 Ruby 程式語言進行延伸範例展示,所有範例可從附帶網站 下載。本指南已完全更新至 Ruby 2.5,展示了以下內容:

- 決定何者應該屬於單一類別
- 避免交織在一起的應該保持分離的物件
- 定義物件之間的靈活介面
- 透過鴨子類型減少程式開銷成本
- 成功應用繼承
- 透過組合建立物件