archiving - Singleton vs DI

백근영·2019년 10월 27일
0

Dependency Injection을 통해 각 클래스 간의 의존성을 느슨하게 만드는 디자인 패턴과, Singleton pattern을 이용해 의존적인 클래스에 접근하는 방법이 서로 대치되는 디자인 패턴이라고 느껴져서, 이 둘을 비교하는 글을 찾아보았다.

https://enterprisecraftsmanship.com/posts/singleton-vs-dependency-injection/

profile
서울대학교 컴퓨터공학부 github.com/BaekGeunYoung

0개의 댓글