Think “SOLID”

S  → Single responsibility principle : One class one responsibility

O → Open/closed principle : Open for extension, but closed for modification

L  → Liskov substitution principle : Design by contract [Link: Liskov substitution principle]

I   → Interface segregation principle : Many client-specific interfaces are better than one general-purpose interface

D → Dependency inversion principle : Abstraction on object and their dependency creation


  1. Good one.. It would have been better if you can add more description for each statement with an example.


Post a Comment

Popular posts from this blog

ERROR: Ignored call to 'alert()'. The document is sandboxed, and the 'allow-modals' keyword is not set.

Application Design Notes

How to store user password at server!!!