C# Best Practices for Developers

C# Best Practices for Developers

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 44m | 302 MB

Get into the habit of developing reliable, readable, and sustainable application code by following coding standards with C#. In this course, join instructor Reynald Adolphe as he shows how to go beyond the language syntax and master best practices that can help you produce high-quality C# code. Throughout the course, Reynald shares some of his favorite best practices, illustrating precisely when and where to use each one. Learn about right way to use constructors, manage objects, implement often ignored advantages of getters and setters. Plus, explore best practice resources, including those for essential design patterns.

Topics include:

  • Naming and handling classes
  • Running a unit test
  • Using constructors
  • Naming and handling methods, fields, and properties
  • Using properties correctly
  • Managing objects efficiently
  • Common design patterns as best practices
Table of Contents

Introduction
1 Welcome
2 What you should know before watching
3 Setting up the Development Environment

Best Practices – An Overview
4 Best practices defined
5 When to use it
6 Getting the team to follow

Naming and Handling Classes
7 Project setup overview
8 Set up the business layer
9 Running a unit test
10 Class naming conventions and standards
11 Field and property naming conventions
12 Using constructors
13 Unit testing constructors
14 Namespaces
15 Static classes
16 Unit testing static classes
17 Using a singleton

Naming and Handling Methods Fields and Properties
18 Method overloading
19 Unit testing without parameters
20 Unit testing with parameters
21 Method chaining
22 Constants vs. read-only fields
23 Using properties correctly
24 Using properties demo
25 Auto-implemented properties
26 Auto-implemented properties demo

Managing Objects Efficiently
27 Initializing objects
28 Related objects needed once
29 Related objects needed always
30 Related objects needed sometimes
31 Checking for null
32 Using statement for efficiency

More Best Practices Resources
33 Web and DB best practice resources
34 Common design patterns as best practice

Conclusion
35 Next steps