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

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

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

This 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.

Company Mentioned

Mention Thumbnail
featured image - SOLID Principles in JavaScript: What Does the "I" Stand For?
Serhii Rubets HackerNoon profile picture

@serhiirubets

Serhii Rubets


Receive Stories from @serhiirubets

react to story with heart
Serhii Rubets HackerNoon profile picture
by Serhii Rubets @serhiirubets.I'm a Fullstack JS engineer with 7 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.
Read my stories

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa