C# Best Practices
Maintaining code is not easy, especially when it is poorly written and hard to understand. This course will teach you how to create clean code, that is easy to maintain and extend, by following the C# best practices and coding conventions.
What you'll learn
Maintaining code is not easy, especially when it is poorly written and hard to understand. In this course, C# Best Practices, you’ll learn how to create clean code. First, you’ll learn the clean code principles. Next, you’ll discover which are the coding conventions and guidelines that you need to follow when writing code, including how to and when to refactor. Finally, you’ll learn how to create testable code. When you’re finished with this course, you’ll have the skills and knowledge of clean code needed to write code that is easy to maintain and extend, by following the C# best practices and coding conventions.
Table of contents
- Let's Talk About Clean Code: Principles and Recommendations 3m
- Writing Self-documenting Code 2m
- KISS or Keep It Simple Stupid (Or Silly) 5m
- DRY or Don’t Repeat Yourself 4m
- YAGNI or You Aren’t Gonna Need It 3m
- SOLID: Single Responsibility Principle 3m
- SOLID: Open-closed Principle 2m
- SOLID: Liskov Substitution Principle 5m
- SOLID: Interface Segregation Principle 3m
- SOLID: Dependency Inversion Principle 3m
- Favor Composition Over Inheritance 2m
- Separation of Concerns 2m
- Takeaway 2m
- Coding Conventions and Guidelines 4m
- Naming Conventions 2m
- PascalCase 5m
- camelCase 3m
- Code Layout Conventions 6m
- Commenting Conventions 6m
- Guidelines: String Interpolation 2m
- Guidelines: StringBuilder 1m
- Guidelines: Implicitly Typed Variables, UInt, and Arrays 3m
- Guidelines: Func and Action 2m
- Guidelines: new, Operators, and using 2m
- Guidelines: ObjectInitializers and Static 2m
- LINQ Guidelines 3m
- Takeaway 3m