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

Interface Segregation Principle Explained - SOLID Design Principles

🚨 IMPORTANT:

1 Year Free Hosting: https://www.atlantic.net/webdevsimplified
Use code KYLE for an additional $50

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 interface segregation principle. This principle is part of the SOLID design principles and is, in my opinion, the easiest rule of SOLID for to understand and implement.

The main idea of the interface segregation principle is that any class that implements an interface must use all functions/properties of the interface. JavaScript does not have actual interfaces, but a class inheritance structure is similar enough that it works in this instance. This means that any class that inherits from another class needs to use all of the methods/properties from the base class. This encourages writing small classes instead of large classes.

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.
📚 Materials/References:

Composition Vs Inheritance Video: https://youtu.be/nnwD5Lwwqdo
🧠 Concepts Covered:

- What the interface segregation principle is
- Why the interface segregation principle is important
- How to use the interface segregation principle
- How to spot violations of the interface segregation 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 #InterfaceSegregationPrinciple

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

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

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

Зарегистрируйтесь или войдите с
Информация о видео
14 января 2020 г. 22:00:08
00:08:20
Яндекс.Метрика