# design pattern

## 디자인 패턴을 다룰 때 조심할 것

1. 디자인 패턴은 정답이 아니다. 해답일 뿐이다.
2. 디자인 패턴은 단순히 Best Practice 라고 생각할 것\
   : 패턴에 나의 상황을 억지로 끼워 맞추지 말고 적절히 변경할 수 있음을 인지 할 것
3. 의사소통의 도구로 생각할 것\
   아\~ 전략 패턴을 써서 다형성을 적용했어요. \
   (Good) 아\~ 외부에서 의존성을 주입받아 사용하도록 했겠구나\~ + 정책이 다양할 수 있나보구나\~\
   (Bad) 잠깐!이건 전략 패턴이 아닌 것 같은데요!? 엄격 근엄 진지\
   이런 식으로 논쟁의 수단으로 취급하지 말자 (물론 아직은 이런 논쟁을 해본적은 다행히도 없다.. 만약 이런 논쟁이 발생한다면 나의 디자인 패턴에 대한 무지함을 인정하고 단어를 잘 못쓴 것을 정정 하겠지만 전략 패턴과 차이가 발생하도록 구현한 이유를 열심히 설명할 것이다. 이것이 좀더 생산적인 대화일 것이다 😎)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://programmer-jjy.gitbook.io/second-brain/second-brain/design-pattern.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
