Clean Code with C# - Second Edition: Refactor your legacy C# code base and improve application performance using best practices

Alls, Jason

  • 出版商: Packt Publishing
  • 出版日期: 2023-12-22
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 492
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1837635196
  • ISBN-13: 9781837635191
  • 相關分類: C#
  • 下單後立即進貨 (約3~4週)

商品描述

Enhance your programming skills through code reviews, TDD and BDD implementation, and API design to overcome code inefficiency, redundancy, and other issues arising from bad code


Key Features:

  • Write code that seamlessly integrates with other systems while maintaining well-defined software boundaries
  • Understand how coding principles and standards elevate software quality
  • Learn how to avoid common errors while implementing concurrency or threading
  • Purchase of the print or Kindle book includes a free PDF eBook


Book Description:

Traditionally associated with Windows desktop applications and game development, C# has expanded into web, cloud, and mobile development. However, despite its extensive coding features, professionals often encounter issues with efficiency, scalability, and maintainability due to poor code. Clean Code in C# guides you in identifying and resolving these problems using coding best practices.

This book starts by comparing good and bad code to emphasize the importance of coding standards, principles, and methodologies. It then covers code reviews, unit testing, and test-driven development, and addresses cross-cutting concerns. As you advance through the chapters, you'll discover programming best practices for objects, data structures, exception handling, and other aspects of writing C# computer programs. You'll also explore API design and code quality enhancement tools, while studying examples of poor coding practices to understand what to avoid.

By the end of this clean code book, you'll have the developed the skills needed to apply industry-approved coding practices to write clean, readable, extendable, and maintainable C# code.


What You Will Learn:

  • Master the art of writing evolvable and adaptable code
  • Implement the fail-pass-refactor methodology using a sample C# console application
  • Develop custom C# exceptions that provide meaningful information
  • Identify low-quality C# code in need of refactoring
  • Improve code performance using profiling and refactoring tools
  • Create efficient and bug-free code using functional programming techniques
  • Write cross-platform code using MAUI
  • Develop cloud-deployable microservices for versatile applications


Who this book is for:

This coding book is for proficient C# developers, team leads, senior software engineers, and software architects who want to improve the efficiency of their legacy systems. A strong understanding of C# programming is assumed.

商品描述(中文翻譯)

透過程式碼審查、TDD和BDD實踐以及API設計,提升您的編程技能,克服糟糕的程式碼所帶來的效率低下、冗余和其他問題。

主要特點:
- 撰寫與其他系統無縫集成並保持良好定義的軟體邊界的程式碼
- 了解編碼原則和標準如何提升軟體品質
- 學習在實現並發性或線程時避免常見錯誤
- 購買印刷版或Kindle書籍可獲得免費PDF電子書

書籍描述:
傳統上與Windows桌面應用程序和遊戲開發相關的C#已擴展到Web、雲和移動開發。然而,儘管具有廣泛的編碼功能,專業人士常常遇到效率、可擴展性和可維護性方面的問題,這是由於糟糕的程式碼所導致的。《C#乾淨程式碼》指導您使用編碼最佳實踐來識別和解決這些問題。

本書首先通過比較好的程式碼和壞的程式碼來強調編碼標準、原則和方法論的重要性。然後涵蓋了程式碼審查、單元測試和測試驅動開發,並解決了橫切關注點。隨著您進一步閱讀,您將發現對於對象、數據結構、異常處理和其他C#計算機程序編寫方面的最佳實踐。您還將探索API設計和程式碼質量增強工具,同時研究糟糕的編碼實踐示例,以了解應該避免的內容。

通過閱讀本書,您將掌握應用行業認可的編碼實踐,撰寫乾淨、可讀、可擴展和可維護的C#程式碼所需的技能。

學到什麼:
- 掌握撰寫可進化和適應的程式碼的藝術
- 使用示例C#控制台應用程序實現失敗-通過-重構方法論
- 開發提供有意義信息的自定義C#異常
- 識別需要重構的低質量C#程式碼
- 使用性能分析和重構工具改進程式碼性能
- 使用函數式編程技術創建高效且無錯誤的程式碼
- 使用MAUI編寫跨平台程式碼
- 開發可部署於雲端的多功能應用程式的微服務

適合對象:
本書適合熟練的C#開發人員、團隊領導、高級軟體工程師和軟體架構師,他們希望提高遺留系統的效率。需要對C#編程有很好的理解。