From the course: C# Best Practices for Developers

Best practices defined - C# Tutorial

From the course: C# Best Practices for Developers

Start my 1-month free trial

Best practices defined

- [Instructor] So, to get started, I'd like to go ahead and have an overview of just the concept of best practices, starting off with the definition. So, if someone were to ask you what best practices are, and when you're thinking about how to answer, a couple of things should pop into your mind, such as standards and conventions, which is what best practices are related to. Standards and conventions serve the following purposes. They create a consistent look to the code so that readers can focus on the content and not the layout. They also enable readers to understand the code more quickly by making assumptions based on previous experience, and they facilitate copying, changing, and maintaining the code. And when you do all this correctly, you're essentially demonstrating best practices. Now, when should you apply best practices? That answer might surprise you. That's up next.

Contents