Skip to content

Coding Convention

신민정 edited this page Sep 16, 2022 · 1 revision

Convention

ID Convention

  • ConstraintLayout 등 레이아웃 → container_

Drawable Convention

what_where_description

ex) ic_bottom_option : bottom에서 사용하는 option 아이콘

Variable Convention

  • Boolean: is, has 등의 prefix 적절히 사용

get, post 요청할 때

  • get의 경우는 get, fetch
  • post의 경우는 각 기능에 따라 → prefix 따로 없음

Fragment

  • prefix는 주로 init, setup
  • initButtons, initObservers

Clean Architecture

  • domain layer
    • 현재 시제의 동사 + 명사/대상(선택사항)UseCase

Clone this wiki locally