Book Image

Clean Code with C# - Second Edition

By : Jason Alls
4.5 (2)
Book Image

Clean Code with C# - Second Edition

4.5 (2)
By: Jason Alls

Overview of this book

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.
Table of Contents (18 chapters)

Further reading

Here are some resources for further reading on writing clean C# APIs with clean architecture:

  • API in C#: The Best Practices of Design and Implementation: https://www.udemy.com/course/api-in-csharp/: This course provides an in-depth explanation of how to design and implement a type or an API that takes care of its users, encapsulates types, codes in a good style, refactors the code, and throws and handles exceptions properly.
  • Clean Architecture With .NET 6 - C# Corner: https://www.c-sharpcorner.com/article/clean-architecture-with-net-62/: This article provides a brief on what a clean architecture is and how to design a solution in .NET 6 while following this architecture.
  • Clean Architecture Solution Template GitHub - ardalis/CleanArchitecture: https://github.com/ardalis/CleanArchitecture: This GitHub repository provides a starting point for Clean Architecture with ASP.NET Core.
  • Introduction To Clean Architecture And Implementation With ASP.NET Core...