Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ›  Naming Convention #2

Closed
doh3e opened this issue Dec 17, 2024 · 0 comments
Closed

πŸ›  Naming Convention #2

doh3e opened this issue Dec 17, 2024 · 0 comments

Comments

@doh3e
Copy link
Owner

doh3e commented Dec 17, 2024

1. λ³€μˆ˜, ν•¨μˆ˜, 클래슀, 디렉토리 λ“±

ν™˜κ²½ μ‚¬μš©μ²˜ 넀이밍 λ£° μ˜ˆμ‹œ
Spring Boot 클래슀, java파일 PascalCase UserServiceImpl
λ©”μ„œλ“œ, λ³€μˆ˜ camelCase getUserInfo
μƒμˆ˜ UPPER_CASE MAX_RETRIES
Java 클래슀 PascalCase OrderProcessor
λ©”μ„œλ“œ, λ³€μˆ˜ camelCase calculateTotalPrice
μƒμˆ˜ UPPER_CASE DEFAULT_TIMEOUT
JavaScript ν•¨μˆ˜, λ³€μˆ˜ camelCase fetchData
μƒμˆ˜ UPPER_CASE API_ENDPOINT
Vue.js μ»΄ν¬λ„ŒνŠΈ 파일 PascalCase UserProfile.vue
λ©”μ„œλ“œ, λ³€μˆ˜ camelCase handleClick
CSS 클래슀λͺ…, ID kebab-case .main-container
λ³€μˆ˜ (CSS λ³€μˆ˜) kebab-case --primary-color

Boolean νƒ€μž… λ³€μˆ˜

  • 접두사 is μ‚¬μš©
  • ex) is_exist

클래슀

  • λͺ…μ‚¬μ ˆ μ‚¬μš©
  • ν…ŒμŠ€νŠΈ ν΄λž˜μŠ€λŠ” "Test"둜 끝날 것. ex) WatcherTest

λ©”μ„œλ“œ

  • 동사/μ „μΉ˜μ‚¬λ‘œ μ‹œμž‘ν•  것
  • ex) renderHTML(), toString()

기타

  • μž„μ‹œ λ³€μˆ˜ μ™Έμ—λŠ” λ°˜λ“œμ‹œ 1κΈ€μž μ΄μƒμœΌλ‘œ μž‘μ„±ν•  것
  • ν˜‘μ—… μ‹œ μ•Œμ•„λ³Ό 수 있게 이름 μž‘μ„± (asdf 이런거 ν•˜μ§€ λ§ˆμ„Έμš”)
  • ν•„μš” μ‹œ μ£Όμ„μœΌλ‘œ μ„€λͺ…

2. 브랜치

master 브랜치

  • μ œν’ˆ μΆœμ‹œ μˆ˜μ€€μ˜ 브랜치 / 배포 κ°€λŠ₯ν•œ μƒνƒœ
  • 배포 이λ ₯ 관리 용
  • 손 λŒ€μ§€ λ§ˆμ„Έμš”!

develop 브랜치

  • λ‹€μŒ μ„œλΉ„μŠ€ 개발 브랜치
  • 개발 브랜치 병합 용
  • 개발 μ™„λ£Œ ν›„ master둜 병합
  • μƒˆλ‘œμš΄ κΈ°λŠ₯ 생성 μ‹œ developμ—μ„œ λΆ„κΈ°ν•˜μ—¬ feature 브랜치 생성할 것
  • νŒ€μž₯ μ™Έ develop 브랜치λ₯Ό μ§μ ‘μ μœΌλ‘œ κ±΄λ“œλ¦¬μ§€ λ§ˆμ„Έμš”!

feature 브랜치

  • μƒˆλ‘œμš΄ κΈ°λŠ₯ 개발, κΈ°λŠ₯ κ΄€λ ¨ 버그 μˆ˜μ • 용 (이슈 번호 연동)
  • develop λΈŒλžœμΉ˜λ‘œλΆ€ν„° λΆ„κΈ°ν•˜μ—¬ 생성
  • front와 back κ΅¬λΆ„ν•˜μ—¬ 생성
  • κΈ°λŠ₯ 개발 ν›„ develop 브랜치둜 Pull Request(PR)ν•˜κΈ°
  • κΈ°λŠ₯ 개발이 λ―Έμ™„μ„± μƒνƒœλ”λΌλ„ 타 κΈ°λŠ₯μ—μ„œ ν•„μš”μ‹œ 쀑간 PR κ°€λŠ₯
  • ex) λ°±μ—”λ“œμ—μ„œ 둜그인 κΈ°λŠ₯을 λ§Œλ“€λ €λŠ” 경우
git checkout -b feature/back/login develop
@doh3e doh3e pinned this issue Dec 17, 2024
@doh3e doh3e closed this as completed Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant