SOLID Principles in JavaScript: What Does the "I" Stand For?

Written by serhiirubets | Published 2022/03/21
Tech Story Tags: solid | solid-principles | interface-segregation | oop | polymorphism | javascript | object-oriented | object-oriented-design

TLDRThis is the fourth part of SOLID Principles in JavaScript. In Javascript we have something similar to them, it's classes, but this principle could be applied to JS classes. It means that when we create a base class, we should declare all methods that will be used in subclasses and try to avoid methods, that some subclass will use, but some another subclass shouldn't use. This principle says: clients should not be forced to depend upon interfaces that they do not use. The "interface Segregation Principle" is about creating correct methods in the base class.via the TL;DR App

no story

Written by serhiirubets | I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.
Published by HackerNoon on 2022/03/21