Principles of Package Design: Creating Reusable Software Components
暫譯: 套件設計原則:創建可重用的軟體元件
Matthias Noback
- 出版商: Apress
- 出版日期: 2018-11-14
- 售價: $2,800
- 貴賓價: 9.5 折 $2,660
- 語言: 英文
- 頁數: 296
- 裝訂: Paperback
- ISBN: 1484241185
- ISBN-13: 9781484241189
海外代購書籍(需單獨結帳)
商品描述
Apply design principles to your classes, preparing them for reuse. You will use package design principles to create packages that are just right in terms of cohesion and coupling, and are user- and maintainer-friendly at the same time.
The first part of this book walks you through the five SOLID principles that will help you improve the design of your classes. The second part introduces you to the best practices of package design, and covers both package cohesion principles and package coupling principles. Cohesion principles show you which classes should be put together in a package, when to split packages, and if a combination of classes may be considered a "package" in the first place. Package coupling principles help you choose the right dependencies and prevent wrong directions in the dependency graph of your packages.
What You'll Learn
- Apply the SOLID principles of class design
- Determine if classes belong in the same package
- Know whether it is safe for packages to depend on each other
Who This Book Is For
Software developers with a broad range of experience in the field, who are looking for ways to reuse,share, and distribute their code
商品描述(中文翻譯)
應用設計原則於您的類別,為其準備重用。您將使用封裝設計原則來創建在內聚性和耦合性方面恰到好處的封裝,同時對用戶和維護者友好。
本書的第一部分將引導您了解五個 SOLID 原則,這些原則將幫助您改善類別的設計。第二部分介紹封裝設計的最佳實踐,涵蓋封裝內聚性原則和封裝耦合性原則。內聚性原則告訴您哪些類別應該放在同一個封裝中,何時應該拆分封裝,以及哪些類別的組合可以被視為「封裝」。封裝耦合性原則幫助您選擇正確的依賴關係,並防止在封裝的依賴圖中出現錯誤的方向。
您將學到的內容:
- 應用 SOLID 類別設計原則
- 確定類別是否應該屬於同一個封裝
- 知道封裝之間相互依賴是否安全
本書適合對象:
擁有廣泛經驗的軟體開發人員,尋找重用、分享和分發其代碼的方法。