Загрузка страницы

Liskov Substitution 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 Liskov substitution principle. This principle is part of the SOLID design principles and is, in my opinion, the most important rule of SOLID for object oriented programming.

The main idea of the Liskov substitution principle is that any function/module that interacts with a class should also be able to interact with all subclasses of that class without breaking. This essentially means that a class is interchangeable with its subclasses.

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 Liskov substitution principle is
- Why the Liskov substitution principle is important
- How to use the Liskov substitution principle
- How to spot violations of the Liskov substitution 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 #LiskovSubstituionPriniciple

Видео Liskov Substitution Principle Explained - SOLID Design Principles канала Web Dev Simplified
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
24 декабря 2019 г. 22:00:09
00:10:24
Яндекс.Метрика