Refactoring with C#: Safely improve .NET applications and pay down technical debt with Visual Studio, .NET 8, and C# 12 (Paperback)
暫譯: 使用 C# 進行重構:安全提升 .NET 應用程式並減少技術負債,搭配 Visual Studio、.NET 8 和 C# 12(平裝本)
Eland, Matt
- 出版商: Packt Publishing
- 出版日期: 2023-11-24
- 售價: $2,050
- 貴賓價: 9.5 折 $1,948
- 語言: 英文
- 頁數: 434
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1835089984
- ISBN-13: 9781835089989
-
相關分類:
.NET、C#、Visual Studio、Refactoring
-
相關翻譯:
重構:改善 .NET 與 C# 應用程式的設計,償還欠下的技術債 (使用 GitHub Copilot 與 Visual Studio) (Refactoring with C#: Safely improve .NET applications and pay down technical debt with Visual Studio, .NET 8, and C# 12) (繁中版)
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$2,300$2,185 -
$2,124The Art of Agile Development, 2/e (Paperback)
-
$780$663 -
$2,160$2,052 -
$580$458 -
$620$489 -
$850$663 -
$650$507 -
$600$420
相關主題
商品描述
Learn how to improve the maintainability of C# code using modern tools and techniques to resolve technical debt while working safely and efficiently with legacy code
Key Features
- Apply a wide range of refactoring techniques using the latest tools and features of C#
- Discover ways to safely improve your code using tests, Roslyn analyzers, and AI assistance
- Find ways of communicating technical debt and improving your code in agile and enterprise settings
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
Software projects start as brand-new greenfield projects, but invariably become muddied in technical debt far sooner than you’d expect. In Refactoring with C#, you'll explore what technical debt is and how it arises before walking through the process of safely refactoring C# code using modern tooling in Visual Studio and more recent C# language features using C# 12 and .NET 8. This book will guide you through the process of refactoring safely through advanced unit testing with XUnit and libraries like Moq, Snapper, and Scientist .NET. You'll explore maintainable code through SOLID principles and defensive coding techniques made possible in newer versions of C#. You'll also find out how to run code analysis and write custom Roslyn analyzers to detect and resolve issues unique to your code.
The nature of coding is changing, and you'll explore how to use AI with the GitHub Copilot Chat to refactor, test, document, and generate code before ending with a discussion about communicating technical debt to leadership and getting organizational buy-in to refactor your code in enterprise organizations and in agile teams.
By the end of this book, you'll understand the nature of refactoring and see how you can safely, effectively, and repeatably pay down the technical debt in your application while adding value to your business.
What you will learn
- Understand technical debt, its causes and effects, and ways to prevent it
- Explore different ways of refactoring classes, methods, and lines of code
- Discover how to write effective unit tests supported by libraries such as Moq
- Understand SOLID principles and factors that lead to maintainable code
- Use AI to analyze, improve, and test code with the GitHub Copilot Chat
- Apply code analysis and custom Roslyn analyzers to ensure that code stays clean
- Communicate tech debt and code standards successfully in agile teams
Who this book is for
This book is for any developer familiar with C# who wants to improve the code they work with on a day-to-day basis. While this book will be most beneficial to new developers with only a year or two of experience, even senior engineers and engineering managers can make the most of this book by exploring not just the process of refactoring, but advanced techniques with libraries like Moq, Snapper, Scientist .NET, and writing custom Roslyn analyzers.
商品描述(中文翻譯)
學習如何使用現代工具和技術來改善 C# 代碼的可維護性,解決技術負債,同時安全且高效地處理遺留代碼。
主要特點
- 應用各種重構技術,使用 C# 的最新工具和功能
- 探索如何使用測試、Roslyn 分析器和 AI 協助安全地改善代碼
- 找到在敏捷和企業環境中溝通技術負債和改善代碼的方法
- 購買印刷版或 Kindle 書籍可獲得免費 PDF 電子書
書籍描述
軟體專案通常從全新的綠地專案開始,但不久後便會不可避免地陷入技術負債,遠比你預期的要快。在《使用 C# 進行重構》中,你將探索技術負債的定義及其產生原因,然後逐步了解如何使用 Visual Studio 中的現代工具和更新的 C# 語言特性(如 C# 12 和 .NET 8)安全地重構 C# 代碼。本書將指導你通過使用 XUnit 進行高級單元測試以及使用 Moq、Snapper 和 Scientist .NET 等庫來安全地進行重構。你將通過 SOLID 原則和在更新版本的 C# 中實現的防禦性編碼技術來探索可維護的代碼。你還將學習如何運行代碼分析並編寫自定義的 Roslyn 分析器,以檢測和解決特定於你的代碼的問題。
編碼的本質正在改變,你將探索如何使用 GitHub Copilot Chat 來重構、測試、記錄和生成代碼,最後討論如何向領導層溝通技術負債並獲得組織的支持,以便在企業組織和敏捷團隊中重構你的代碼。
在本書結束時,你將理解重構的本質,並看到如何安全、有效且可重複地減少應用程式中的技術負債,同時為你的業務增值。
你將學到什麼
- 理解技術負債、其成因和影響,以及預防方法
- 探索重構類別、方法和代碼行的不同方式
- 發現如何撰寫有效的單元測試,並使用 Moq 等庫進行支持
- 理解 SOLID 原則和導致可維護代碼的因素
- 使用 AI 分析、改善和測試代碼,並利用 GitHub Copilot Chat
- 應用代碼分析和自定義的 Roslyn 分析器,以確保代碼保持乾淨
- 在敏捷團隊中成功地溝通技術負債和代碼標準
本書適合誰
本書適合任何熟悉 C# 的開發人員,旨在改善他們日常工作中的代碼。雖然本書對於只有一到兩年經驗的新開發人員最為有益,但即使是資深工程師和工程經理也能通過探索重構過程以及使用 Moq、Snapper、Scientist .NET 等庫的高級技術,充分利用本書的內容。
目錄大綱
- Technical Debt, Code Smells, and Refactoring
- Introduction to Refactoring
- Method-Level Refactorings
- Class-Level Refactorings
- Code-Level Refactorings
- Unit Testing
- Test Driven Development
- Avoiding Code Anti-Patterns with SOLID
- Advanced Unit Testing
- Defensive Coding Techniques
- AI-Assisted Refactoring with GitHub Copilot
- Code Analysis in Visual Studio
- Creating a Roslyn Analyzer
- Refactoring Code with Roslyn Analyzers
- Communicating Technical Debt
- Adopting Code Standards
- Agile Refactoring
目錄大綱(中文翻譯)
- Technical Debt, Code Smells, and Refactoring
- Introduction to Refactoring
- Method-Level Refactorings
- Class-Level Refactorings
- Code-Level Refactorings
- Unit Testing
- Test Driven Development
- Avoiding Code Anti-Patterns with SOLID
- Advanced Unit Testing
- Defensive Coding Techniques
- AI-Assisted Refactoring with GitHub Copilot
- Code Analysis in Visual Studio
- Creating a Roslyn Analyzer
- Refactoring Code with Roslyn Analyzers
- Communicating Technical Debt
- Adopting Code Standards
- Agile Refactoring