> For the complete documentation index, see [llms.txt](https://flamme1004.gitbook.io/flamme-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flamme1004.gitbook.io/flamme-dev/common/undefined-3/undefined-1/undefined/2020-09-10.md).

# 2020-09-10

&#x20;1\. Dry을 명시하라!

![](https://15316191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7_opr2RFh9Acog0_8H%2F-MGrKB3xKB-krU1_W4GZ%2F-MGrKKCri_RRUpF79Gs-%2Fimage.png?alt=media\&token=bf31788f-804a-4a2e-851c-b2bee555bb39)

{% embed url="<https://ko.wikipedia.org/wiki/%EC%A4%91%EB%B3%B5_%EC%BD%94%EB%93%9C>" %}

중복 코드를 없애라!

2\. loginCookie를 여러곳에서 쓰는곳을 의심하라.

&#x20;     1\. aop를 써도 되는 것 아닌가? interceptor를 써도 되는 것 아닌가?

3\. 중복소스는 하나의 메소드로 만들자.

4\. 공통변수를 담을 수 있는 클래스를 만들자.

{% embed url="<https://velog.io/@conatuseus/2019-12-06-2212-%EC%9E%91%EC%84%B1%EB%90%A8-1sk3u75zo9>" %}

{% embed url="<https://freestrokes.tistory.com/77>" %}

5\. callStack optional

{% embed url="<https://www.hanumoka.net/2018/08/24/spring-20180824-spring4-aop-logging/>" %}

AOP로 하는 방법이 있다.

6\. java Indexcer

{% embed url="<https://www.google.com/search?q=c%23+indexer&oq=c%23+indexer&aqs=chrome..69i57j0l6j69i58.5119j0j7&sourceid=chrome&ie=UTF-8>" %}

씨샵은 있으나 아직 자바는 없다..?

7\. DB 인덱스

&#x20; where 절이 많으면 primarykey index를 잘 줘야한다.

&#x20; 다 주지 말고 상황에 따라서 index를 달리줘야한다. 왜냐하면 index가 걸리고나서 데이터에 대한 추가 수정 삭제에 대한 변화가 있으면 index를 다시 매기기 때문이다.

{% embed url="<https://majesty76.tistory.com/55>" %}

8.보일러플레이트 주
