SOLID Design principles by GoF

SOLID Design principles by GoF

There are five well-known software design principles from the book “Head First, Design Patterns”. Nothing’s absolute, but classical things are great enough to know and have a look on it.

S : Single responsibility

O : OCP, Open / Close Principles

  • Objects should be open for extension, but closed for modification.
  • 클래스(객체)는 확장에 대해서는 열려있어야 한다. 하지만, 코드 변경에 대해서는 닫혀 있어야 한다.

L

I

D : Dependency Inversion Principles

  • if you want an easier life as a coder, “depend on abstractions, not concretions”
  • 추상화된 것에 의존하도록 만들어라. 구상 클래스에 의존하도록 만들지 않아야 한다.

    SOLID design principles

Share Comments