Skip to content

Naming Strategy

su_bro edited this page Oct 22, 2022 · 1 revision

File,Folder

  • folder
    • the-pool
  • module
    • the-pool.module.ts
  • controller
    • the-pool.controller.ts
  • service
    • the-pool.service.ts

variable

  • class (PascalCase)
    • ThePoolClass {}
  • constant (UPPER_SNAKE_CASE)
    • THE_POOL
  • variable (camelCase)
    • thePool

  • 모든 네이밍은 약어 사용 금지
  • 형 변환은 명시적으로 (!! 제외)
  • 모든 함수는 class로 캡슐화 해서 사용
  • 상수 예외 처리 > switch case 사용할 때 default 사용 x (나올 수 있는 모든 case 만들기)

Clone this wiki locally