Design Patterns: Open Closed Principle Explained Practically in C# (The O in SOLID)
When you are writing code, are you doing it right? That is a question that worries a lot of people, and it should probably at least be something every developer thinks through. Design patterns are best-practice concepts that we can implement into our code to make it better in some way. Think of them as guardrails that keep our code safe. In this video, we are going to look at the second entry in the famous SOLID principle. The O stands for Open Closed Principle. We are going to dive into what it means, how it should change our programming practices, and how far we should take it.
Newsletter signup (with exclusive discounts): https://signup.iamtimcorey.com/ (your email will be kept safe and you will not be spammed).
Source Code: https://leadmagnets.app/?Resource=OInSOLID
0:00 - Intro
1:43 - Code behind demo application
5:36 - Open Closed Principle: when to apply
6:18 - Introducing changes in existing code base
18:20 - Identify the issues
21:40 - Implementing OCP: Use of interfaces
38:32 - Implementing OCP: Recap
40:46 - Summary
42:05 - Organizing the code base
43:55 - Note on Namespaces in folder structure
46:50 - Concluding remarks
Видео Design Patterns: Open Closed Principle Explained Practically in C# (The O in SOLID) канала IAmTimCorey
Newsletter signup (with exclusive discounts): https://signup.iamtimcorey.com/ (your email will be kept safe and you will not be spammed).
Source Code: https://leadmagnets.app/?Resource=OInSOLID
0:00 - Intro
1:43 - Code behind demo application
5:36 - Open Closed Principle: when to apply
6:18 - Introducing changes in existing code base
18:20 - Identify the issues
21:40 - Implementing OCP: Use of interfaces
38:32 - Implementing OCP: Recap
40:46 - Summary
42:05 - Organizing the code base
43:55 - Note on Namespaces in folder structure
46:50 - Concluding remarks
Видео Design Patterns: Open Closed Principle Explained Practically in C# (The O in SOLID) канала IAmTimCorey
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Design Patterns: Liskov Substitution Principle Explained Practically in C# (The L in SOLID)Handling Exceptions in C# - When to catch them, where to catch them, and how to catch themInheritance vs Interfaces in C#: Object Oriented ProgrammingC# Async / Await - Make your app more responsive and faster with asynchronous programmingOpen Closed PrincipleHow Do I Learn Design Patterns? Which Design Patterns Should I Know?Creating NuGet Packages the easy way with .NET Standard in C#Open/Closed Principle Explained - SOLID Design PrinciplesSQL Stored Procedures - What They Are, Best Practices, Security, and More...Intro to Unit Testing in C# using XUnitC# Generics - What they are, why they are useful, and how to create themDesign Patterns: Single Responsibility Principle Explained Practically in C# (The S in SOLID)Intro to WebAPI - One of the most powerful project types in C#Never Rewrite Code (open/closed principle) | Code Walks 039The Singleton Design Pattern - Part of the Gang of FourDesign Patterns: Interface Segregation Principle Explained Practically in C# (The I in SOLID)C# Advanced Async - Getting progress reports, cancelling tasks, and moreWhat's New in C# 8.0 - Is There Multi-Inheritance Now?Refactoring in C# - Improving an Existing ApplicationC# Dependency Injection with Autofac