Clean Code in C#: Refactor your legacy C# code base and improve application performance by applying best practices
$44.99
Price: $44.99
(as of May 30,2022 19:46:45 UTC – Details)
From the Publisher
Why focus on clean code?
Bad code can cause a whole range of problems relating to efficiency, scalability and maintainability. By making clean code your priority, you can avoid these issues, and extend the lifetime of applications.
Clean Code in C# will help you understand the difference between clean and poorly written code using a combination of best practices, working examples, and software design patterns.
How can Clean Code in C# help me to write better code?
This book will enable you to identify poor code in existing projects and refactor it using clean coding tools and techniques, and show you how to write clean code when starting new projects or maintaining and extending existing projects.
With its help, you’ll be able to:
Put together your company’s own coding procedures inline with industry best practicesReduce code complexity using code analysisIdentify code smells and remove them through refactoringDocument APIsSecure sensitive information with Azure Key Vault
Do more with Clean Code in C# Use dependency injection and inversion of control to make your applications extensible Use software methodologies such as DRY, KISS, SOLID and YAGNI to write clean code Perform peer code reviews when pull requests are issued to maintain code quality
What difference can using clean code principles make to your software?
Clean code principles greatly improve your software. Through the right application of clean code principles such as DRY and SOLID, the correct design patterns for the task at hand, and by standardising on best practice coding standards, your code will be less complex, easy to read and so easy to maintain, and will be easy to extend as the need arises.
Using techniques such as TDD and BDD ensures your code works as expected and delivers what the business has asked for. Performing static code analysis helps you to identify dead code and bottlenecks helping you to trim your code and refactor as necessary. Performing peer code reviews each time a pull request is raised helps you to maintain coding quality and standards. Passing immutable structs instead of mutable objects helps to prevent multithreading issues and improves performance. Storing sensitive information in a secure cloud-based environment such as Azure Key Vault helps to protect secrets from being leaked.
Clean Code in C# will show you all these techniques and more. The code you write will become easy to extend as you learn about dependency injection and inversion of control, and as it follows industry best practices, it will be easy to maintain.
Publisher : Packt Publishing (July 17, 2020)
Language : English
Paperback : 500 pages
ISBN-10 : 1838982973
ISBN-13 : 978-1838982973
Item Weight : 1.87 pounds
Dimensions : 7.5 x 1.13 x 9.25 inches
$44.99