Myvideo

Guest

Login

iEInterface Segregation Principle Explained - SOLID Design Principles (Дата оригинальной публикации: )

Uploaded By: Myvideo
1 view
0
0 votes
0

🚨 IMPORTANT: 1 Year Free Hosting: 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: 🧠 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: My Courses: Patreon: Twitter: Discord: GitHub: CodePen: #SOLID #WDS #InterfaceSegregationPrinciple

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later