Programming
코딩스타일
Programics
2020. 2. 19. 15:27
반응형
카멜 표기법 (camelCase) || 단봉낙타 표기법 (lowerCamelCase)
단어들이 소문자로 시작, 대문자로 이어가는 스타일
(Java 위주 || Function)
ex. helloWorld
파스칼 표기법 (PascalCase) || 쌍봉낙타 표기법 (UpperCamelCase)
단어들이 대문자로만 이어가는 스타일
(Function || Class)
ex. HelloWorld
스네이크 표기법 (snake_case) || 팟홀 표기법 (pothole_case)
단어들 사이에 언더바(Underbar, Underscore, _ )로 이어가는 스타일
(DB Table || Column, Variable, Function, DataType, Namespace 등)
ex. hello_world
케밥 표기법 (Kebab Case)
단어들 사이에 하이픈(Hyphen, Dash, -)으로 이어가는 스타일
(HTML Tag의 id나 class 속성)
ex. hello-world
헝가리안 표기법 (Hungarian Notation)
접두어로만 줄여쓰는 스타일
(권장하지 않음)
ex. h , hw
반응형