Open/Closed Principle Explained - SOLID Design Principles
Writing clean code is tough, and is one of the largest differences between junior and senior developers. One way that you can quickly improve your code and start writing well designed code now is to implement the open/closed principle. This principle is part of the SOLID design principles and is, in my opinion, the most complex rule of SOLID. This is because the definition is difficult to understand, but once you wrap your head around the idea it is very easy to implement.
The main idea of the open/closed principle is that every class/function/module/section of your code should be open for extension and closed for modification. This means that a class/function/module should be able to be extended in functionality without having to go into the class and change it. Essentially you shouldn't need to change existing code to add new functionality and instead should only have to add new code.
Most likely you have written tons of code in violation of this principle, I know I have, but hopefully this video will help introduce you to why this principle is so good at making your code clean and maintainable.
🧠 Concepts Covered:
- What the open/closed principle is
- Why the open/closed principle is important
- How to use the open/closed principle
- How to spot violations of the open/closed principle
🌎 Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
#SOLID #WDS #OpenClosedPriniciple
Видео Open/Closed Principle Explained - SOLID Design Principles канала Web Dev Simplified
The main idea of the open/closed principle is that every class/function/module/section of your code should be open for extension and closed for modification. This means that a class/function/module should be able to be extended in functionality without having to go into the class and change it. Essentially you shouldn't need to change existing code to add new functionality and instead should only have to add new code.
Most likely you have written tons of code in violation of this principle, I know I have, but hopefully this video will help introduce you to why this principle is so good at making your code clean and maintainable.
🧠 Concepts Covered:
- What the open/closed principle is
- Why the open/closed principle is important
- How to use the open/closed principle
- How to spot violations of the open/closed principle
🌎 Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
#SOLID #WDS #OpenClosedPriniciple
Видео Open/Closed Principle Explained - SOLID Design Principles канала Web Dev Simplified
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Liskov Substitution Principle Explained - SOLID Design Principles](https://i.ytimg.com/vi/dJQMqNOC4Pc/default.jpg)
![Introduction To Testing In JavaScript With Jest](https://i.ytimg.com/vi/FgnxcUQ5vho/default.jpg)
![Design Patterns: Open Closed Principle Explained Practically in C# (The O in SOLID)](https://i.ytimg.com/vi/VFlk43QGEgc/default.jpg)
![Exploring When Solid State Batteries Will Arrive](https://i.ytimg.com/vi/3PyXQ0UXk9w/default.jpg)
![Why I Get Up At 5AM And Why You Should Too](https://i.ytimg.com/vi/U7eGCZAfDyU/default.jpg)
![Single Responsibility Principle Explained - SOLID Design Principles](https://i.ytimg.com/vi/UQqY3_6Epbg/default.jpg)
![Memoization And Dynamic Programming Explained](https://i.ytimg.com/vi/WbwP4w6TpCk/default.jpg)
![Understanding the Open Closed Principle](https://i.ytimg.com/vi/Ryhy7333mqQ/default.jpg)
![Dependency Inversion Principle Explained - SOLID Design Principles](https://i.ytimg.com/vi/9oHY5TllWaU/default.jpg)
![SOLID Design Principles (An Introduction for .NET Developers)](https://i.ytimg.com/vi/9qvCeRt9_hM/default.jpg)
![Null Object Pattern - Design Patterns](https://i.ytimg.com/vi/D4Dja5WSZoA/default.jpg)
![Composition Vs Inheritance - Why You Should Stop Using Inheritance](https://i.ytimg.com/vi/nnwD5Lwwqdo/default.jpg)
![SOLID Design Principles in #Angular (Advanced, 2021)](https://i.ytimg.com/vi/Y-MRJ9QYCvI/default.jpg)
![How To Create And Publish Your First NPM Package](https://i.ytimg.com/vi/J4b_T-qH3BY/default.jpg)
![Do You Really Understand CSS Inheritance?](https://i.ytimg.com/vi/N8tFrMZp_wA/default.jpg)
![Six Most Used Design Patterns in Project](https://i.ytimg.com/vi/cNPH6IPh5yk/default.jpg)
![Builder Pattern - Design Patterns](https://i.ytimg.com/vi/M7Xi1yO_s8E/default.jpg)
![Do THIS to Write Clean Code! | JavaScript Pro Tips (2021)](https://i.ytimg.com/vi/ZI3q-_vjSZE/default.jpg)
![JavaScript ES6 Modules](https://i.ytimg.com/vi/cRHQNNcYf6s/default.jpg)
![Junior Vs Senior Code - How To Write Better Code As A Web Developer - React](https://i.ytimg.com/vi/0yzoAbrjV6k/default.jpg)