SOLID Principles — Concise and brief explanation

V — D
V — D
Sep 28 · 1 min read

Hi Folks,

Today I am going to tell you about what exactly SOLID Principles concepts are in simple terms.

SOLID stands for

Image taken from google images.

1. Single responsibility principle

  • Each class should have only one reason to change.

2. Open-closed principle

  • Introduce abstractions in front of code that will change.

3. Liskov substitution principle

  • Importance of proper sub-typing in inheritance hierarchies

1. Contravariance of arguments

2. Contravariance of result.

3. Pre Conditions .

4. Post Conditions

5. Exception rule.

6. In-variant rule.

7. Constraint rule.

  • Especially important for code that will be consumed by others.

4. Interface segregation principle

  • Clients should only depend on the functionality they actually use.

5. Dependency inversion principle

  • Governs usage of abstractions

Thanks for reading and please share and subscribe for more information.

Frontend Weekly

It's really hard to keep up with all the front-end…

Frontend Weekly

It's really hard to keep up with all the front-end development news out there. Let us help you. We hand-pick interesting articles related to front-end development. You can also subscribe to our weekly newsletter at http://frontendweekly.co

V — D

Written by

V — D

Enthusiastic JS developer, Angular, React, Crypto, Block-chain

Frontend Weekly

It's really hard to keep up with all the front-end development news out there. Let us help you. We hand-pick interesting articles related to front-end development. You can also subscribe to our weekly newsletter at http://frontendweekly.co