Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2/e (Hardcover)

Krzysztof Cwalina, Brad Abrams

買這商品的人也買了...

商品描述

Framework Design Guidelines, Second Edition, teaches developers the best practices for designing reusable libraries for the Microsoft .NET Framework. Expanded and updated for .NET 3.5, this new edition focuses on the design issues that directly affect the programmability of a class library, specifically its publicly accessible APIs.

 

This book can improve the work of any .NET developer producing code that other developers will use. It includes copious annotations to the guidelines by thirty-five prominent architects and practitioners of the .NET Framework, providing a lively discussion of the reasons for the guidelines as well as examples of when to break those guidelines.

 

Microsoft architects Krzysztof Cwalina and Brad Abrams teach framework design from the top down. From their significant combined experience and deep insight, you will learn

  • The general philosophy and fundamental principles of framework design
  • Naming guidelines for the various parts of a framework
  • Guidelines for the design and extending of types and members of types
  • Issues affecting–and guidelines for ensuring–extensibility
  • How (and how not) to design exceptions
  • Guidelines for–and examples of–common framework design patterns

Guidelines in this book are presented in four major forms: Do, Consider, Avoid, and Do not. These directives help focus attention on practices that should always be used, those that should generally be used, those that should rarely be used, and those that should never be used. Every guideline includes a discussion of its applicability, and most include a code example to help illuminate the dialogue.

 

Framework Design Guidelines, Second Edition, is the only definitive source of best practices for managed code API development, direct from the architects themselves.

 

A companion DVD includes the Designing .NET Class Libraries video series, instructional presentations by the authors on design guidelines for developing classes and components that extend the .NET Framework. A sample API specification and other useful resources and tools are also included.

商品描述(中文翻譯)

《Framework Design Guidelines, Second Edition》教導開發人員設計可重複使用的 Microsoft .NET Framework 函式庫的最佳實踐。這本針對 .NET 3.5 進行了擴充和更新的新版本,專注於直接影響類庫的可編程性的設計問題,特別是其公開可訪問的 API。

這本書可以改進任何一位 .NET 開發人員編寫其他開發人員將使用的代碼的工作。它包含了三十五位傑出的 .NET Framework 架構師和實踐者對指南的大量註釋,提供了對指南背後原因的生動討論,以及何時違反這些指南的示例。

微軟架構師Krzysztof Cwalina和Brad Abrams從頂層開始教授框架設計。通過他們豐富的經驗和深入的洞察力,您將學習到:

- 框架設計的一般哲學和基本原則
- 各個框架部分的命名指南
- 類型和類型成員的設計和擴展指南
- 影響和確保可擴展性的問題和指南
- 如何(以及如何不)設計異常
- 常見框架設計模式的指南和示例

本書中的指南以四種主要形式呈現:Do(應該始終使用)、Consider(應該通常使用)、Avoid(應該很少使用)和Do not(應該永不使用)。這些指令有助於專注於應該始終使用的實踐方法,通常使用的實踐方法,很少使用的實踐方法以及永不使用的實踐方法。每個指南都包含其適用性的討論,大多數還包含代碼示例以幫助闡明對話。

《Framework Design Guidelines, Second Edition》是唯一一本由架構師們直接提供的受管理代碼 API 開發最佳實踐的權威來源。

附帶的 DVD 包括了《設計 .NET 類庫》視頻系列,作者對開發擴展 .NET Framework 的類和組件的設計指南進行了教學演示。還包括了示例 API 規範和其他有用的資源和工具。