Replies: 2 comments
-
앞으로 네이밍 룰을 적용해서 직접적으로 프로젝트에 참여하게 될 상황이 생길 것 같은데 정리 감사합니다. 😁 |
Beta Was this translation helpful? Give feedback.
0 replies
-
네이밍 규칙을 구체적으로 몰랐는데... 이 글에서 많은걸 얻어갑니다.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
핵심 요약
패키지
(e.g.
utilities
* ->util
)(e.g.
aop
)이처럼 자바 패키지 계층에서 하부 패키지를 하위 패키지(subpackage)라고 함
(e.g.
java.util.concurrent.atomic
)클래스, 인터페이스
max
,min
처럼 널리 통용되는 줄임말을 제외하면 단어 줄이기 금지(e.g.
NHNCloudService
vs.NhnCloudService
)(e.g.
Thread
,PriorityQueue
)(e.g.
Collections
,StringUtils
)-able
,-ible
처럼 형용사형 어미 사용UserDetailsService
,AutoCloseable
,Serializable
)필드
(e.g.
INSTANCE
,MAX_VALUE
) (feat. 아이템 17. 변경 가능성을 최소화하라 #37)메서드
(e.g.
append
,drawImage
)boolean
값을 반환하는 메서드는 보통is-
,has-
접두어 사용(e.g.
isEmpty
,hasSiblings
)toType
형태로 명명(e.g.
toString
,toArray
)asType
형태로 명명(e.g.
asList
) (feat. 아이템 6. 불필요한 객체 생성을 피하라 #11)타입 매개변수
T
: 임의의 타입E
: 컬렉션 원소의 타입K
,V
: 맵의 키와 값X
: 예외R
: 메서드의 반환 타입T
,U
,V
orT1
,T2
,T3
: 임의 타입의 시퀀스회고
예전만큼은 아니지만 평소에도 해당 주제에 대해 잘 지켜야 한다는 고집이 있는데, 잘 알려진 도서에서 가이드를 제시해주니 제 마음이 마치 아래와 같았습니다.
Beta Was this translation helpful? Give feedback.
All reactions