Clean Code in C#

More Information
Learn
  • Write code that allows software to be changed and adapted over time
  • Implement the fail-pass-refactor methodology through a sample C# console application
  • Address cross-cutting concerns with the help of software design patterns
  • Write custom C# exceptions that provide meaningful information
  • Identify poor quality C# code that needs to be refactored
  • Improve your code’s performance by using tools for profiling and refactoring
About

C# was traditionally used in building Windows desktop applications and games. In recent years, it is used in a wide variety of domains such as web applications and cloud applications and has become increasingly popular for mobile development too. However, professionals in these areas experience problems related to efficiency, scalability, and maintainability because of bad code. This book will help you understand these problems and show how to solve them.

You’ll start by looking at good code and bad code. By doing this, you’ll learn why coding standards, principles, and methodologies are important, before going on to understand coding standards and coding principles. You’ll later discover code reviews and their role in helping you improve your code and ensure that you’re adhering to company coding standards. Next, you’ll delve into unit testing, addressing cross-cutting concerns and good programming practices for objects, data structures, exception handling and other aspects of writing C# computer programs. After covering API design and using tools to improve the quality of your code, you’ll finally look at examples of bad code and why you should avoid coding in a certain way.

By the end of this book, you’ll have the skills you need to apply industry-approved coding practices to write clean, readable, extendable and maintainable code.

Features
  • Write code that cleanly integrates with other systems whilst maintaining well-defined software boundaries
  • Understand how coding principles and standards enhance software quality
  • Learn how to avoid problems that can arise while implementing concurrency or threading
Page Count 282
Course Length 8 hours 27 minutes
ISBN 9781838982973
Date Of Publication 14 Aug 2020

Authors

Jason Alls

Jason Alls is a Microsoft Certified Professional in C# with 20 years-worth of commercial programming experience. He cut his teeth on Visual Basic 6 with Oracle and SQL Server building reporting solutions for call center management software that is used by major companies and government organizations. He then migrated to Visual Basic .NET when it was first launched working on automated reporting solutions for credit counseling agencies, GIS marketing applications, and document management websites for law firms. With the advent of Windows Phone, he developed job logging applications of truck maintenance engineers and then moved into writing software for dyslexia and working memory testing and assessment using VB6, VB.NET, and C#. His other works include a sliding puzzle game developed using Unity and running an online apparel website.