Posts tagged “solid

4 articles · all posts

April 7, 2021

Interface Segregation Principle

The SOLID principle that an interface should never force a client to implement methods it does not need.

April 6, 2021

Liskov Substitution Principle

The SOLID principle that a subclass must work anywhere its parent does, explained with a duck that breathes fire.

March 30, 2021

Open Closed Principle

The SOLID principle that a class should be open to extension but closed to modification, worked through a password validator.

March 26, 2021

Single Responsibility Principle

The SOLID principle that a class should do exactly one thing, and the question to ask before adding another method to it.