-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[#16] 기타 - 디자인 패턴 - 가교 패턴 추가 및 전략 패턴 수정 #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
금일 내로 리뷰하겠습니다~ 기여 감사합니다~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기여해주셔서 감사합니다.
한 번 생각해볼만한 부분을 리뷰 남겼습니다!
확인 후 코멘트 달아주세요!
README.md
Outdated
<details> | ||
<summary>전략 패턴에 대해서 설명해주세요.</summary> | ||
</br> | ||
<p>인터페이스를 통해 통째로 외부로 분리시키고, 이를 구현한 구체적인 클래스를 필요에 따라 바꿔서 사용할 수 있게 하는 디자인 패턴입니다. 전략 패턴은 개방 폐쇄 원칙에 가장 잘 들어 맞는 패턴입니다.</p> | ||
<p>전략 패턴은 알고리즘을 객체 단위로 캡슐화하는 디자인 패턴입니다. 해당 패턴에서 알고리즘은 인터페이스를 통해 정의 및 이용되고 해당 인터페이스를 따르는 클래스를 통해 구현됩니다. 해당 패턴을 통해서 사용자는 알고리즘을 필요에 따라 바꿔서 사용할 수 있게 됩니다. 전략 패턴은 객체지향 설계의 SOLID 원칙 중 개방 폐쇄 원칙(OCP)에 부합한 패턴입니다. 가교 패턴과 구조가 비슷하지만 두 패턴에는 목적에 차이가 있습니다. 가교 패턴이 추상과 구현의 분리를 통한 독립적 개발의 용이성에 중점을 둔다면 전략 패턴은 알고리즘의 캡슐화를 통한 알고리즘 변경의 유연성에 중점을 둡니다.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
내용은 좋은데, 너무 긴 느낌이 있네요.
비교 부분은 한 단락 띄워서 설명해줘도 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확실히 단락을 나누니까 가독성이 좋아졌네요! 확인했습니다.
가교 패턴의 대체어인 브릿지 패턴을 추가하고 전략 패턴의 단락을 나눴습니다.
리뷰에 맞춰 수정했습니다! 확인 부탁드립니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기여 감사합니다! 바로 머지하겠습니다!
#16
기타 - 디자인 패턴 목록에 가교 패턴 항목을 추가하고 해당 패턴과와 비슷한 전략 패턴을 구별하기 위해 전략 패턴의 설명을 보충했습니다.