Clean Coding Principles in C#

Clean code is the art of writing code that humans can understand. Learn how to write C# in a style that's easy to write, read, and maintain. This course is filled with clear comparisons between "dirty" C# code to avoid, and the "clean" C# equivalent.
Course info
Rating
(145)
Level
Beginner
Updated
Jan 2, 2020
Duration
3h 18m
Table of contents
Course Overview
Why Writing Clean Code Matters
Clean Coding Principles
Naming
Writing Conditionals That Convey Intent
Writing Clean Methods
Writing Clean Classes
Writing Clean Comments
Demo: Refactoring to Clean C#
Staying Clean
Description
Course info
Rating
(145)
Level
Beginner
Updated
Jan 2, 2020
Duration
3h 18m
Description

Clean code is the art of writing code that humans can understand. In this course, Clean Coding Principles in C#, you'll elevate your professionalism and increase your C# code quality by writing with the reader in mind. This course is built upon three core clean coding practices: selecting the right tool for the job, optimizing the signal to noise ratio, and creating self-documenting logic. Throughout this course you'll see clear comparisons between "dirty" C# code to avoid and the "clean" equivalent. You'll explore patterns like arrow code, failing fast, returning early, magnet classes, mayfly variables, techniques for reducing method complexity, and much more. These practices are the foundation for a professional development career and provide developers a clear vocabulary for evaluating code quality.

About the author
About the author

Cory is an independent consultant with over 15 years of experience in software development. He is the principal consultant at reactjsconsulting.com and a Microsoft MVP.

More from the author
Managing React State
Intermediate
5h 5m
Aug 20, 2020
React: The Big Picture
Beginner
1h 10m
May 11, 2020
More courses by Cory House
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is Cory House, and welcome to my course, Clean Coding Principles in C#. I'm an independent consultant specializing in JavaScript, React, and C#. Is your team's C# code clean? Can it be easily read and maintained by others? The average line of code will be read 10 or more times, so it pays to write code that's easy for others to understand. In this course, we're going to explore principles for creating C# code in a clean style that's easy to read, write, and maintain. Some of the major topics we'll cover include implementing effective conditionals, reducing method complexity, optimizing your code's signal to noise ratio, creating self‑documenting logic, and refactoring existing C# code. By the end of this course, you'll have the knowledge you need to write clear, maintainable C#, and you'll have a clear path for improving your existing code too. Before beginning the course, you should be familiar with C# fundamentals. I hope you'll join me on this journey to learn how to write cleaner code with the Clean Coding Principles in C# course, at Pluralsight.