paint-brush
SOLID Principles in JavaScript: What Does the "I" Stand For?by@serhiirubets
302 reads
302 reads

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

by Serhii Rubets2mMarch 21st, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Serhii Rubets

Serhii Rubets

@serhiirubets

I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.

Learn More
LEARN MORE ABOUT @SERHIIRUBETS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Serhii Rubets HackerNoon profile picture
Serhii Rubets@serhiirubets
I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite