Skip to content

modorie/styleguide

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

styleguide

λ±…ν¬μƒλŸ¬λ“œ μ—”μ§€λ‹ˆμ–΄λ§ νŒ€μ΄ μ§€ν–₯ν•˜λŠ” μ½”λ“œμ˜ ν˜•νƒœλ₯Ό ν•¨κ»˜ λ…Όμ˜ν•˜κ³  이λ₯Ό λ¬Έμ„œλ‘œ 정리해둔 μŠ€νƒ€μΌ κ°€μ΄λ“œ μ½”λ“œ μ €μž₯μ†Œμž…λ‹ˆλ‹€.

정적인 λ¬Έμ„œ 파일이 μ•„λ‹Œ μ½”λ“œ μ €μž₯μ†Œ ν˜•νƒœλ‘œ μŠ€νƒ€μΌ κ°€μ΄λ“œλ₯Ό μš΄μ˜ν•˜λŠ” 것은 이λ₯Ό λ…Όμ˜μ˜ κ³΅κ°„μœΌλ‘œ μ‚Όκ³ μž ν•˜λŠ”λ° κ°€μž₯ 큰 뜻이 μžˆμŠ΅λ‹ˆλ‹€. λˆ„κ΅¬λ“  μ œμ•ˆ(issue ν˜Ήμ€ pull request)ν•  수 있으며 이에 λŒ€ν•œ μ˜κ²¬μ„ κ³΅μœ ν•  수 μžˆλ„λ‘ ν•˜κΈ° μœ„ν•¨μž…λ‹ˆλ‹€.

λ‹€μŒμ€ 저희 λ±…ν¬μƒλŸ¬λ“œ μ—”μ§€λ‹ˆμ–΄λ§ νŒ€μ—μ„œ μž‘μ„±ν•œ 언어별 μŠ€νƒ€μΌ κ°€μ΄λ“œ λͺ©λ‘μž…λ‹ˆλ‹€. 늘 저희 νŒ€ μ΅œμ‹ μ˜ 생각을 λ°˜μ˜ν•˜κΈ° μœ„ν•΄ λ…Έλ ₯ 쀑이며, μž‘μ„±λœ μŠ€νƒ€μΌ κ°€μ΄λ“œλŠ” μ–Έμ œλ“  더 λ‚˜μ€ ν˜•νƒœλ‘œ 변경될 수 μžˆμŠ΅λ‹ˆλ‹€.

μ² ν•™

저희 λ±…ν¬μƒλŸ¬λ“œλŠ” μž‘μ„±μ— νŽΈλ¦¬ν•œ μ½”λ“œλ³΄λ‹€λŠ” 읽기에 더 μ‰¬μš΄ μ½”λ“œλ₯Ό 더 κ°€μΉ˜ 있게 μƒκ°ν•˜λ©° 이λ₯Ό μŠ€νƒ€μΌ κ°€μ΄λ“œμ— μΆ©λΆ„νžˆ λ°˜μ˜ν•˜κ³ μž ν•©λ‹ˆλ‹€. λ¬Όλ‘  저희 νŒ€μ€ μ½”λ“œ μž‘μ„±μ˜ νŽΈλ¦¬ν•¨ λ˜ν•œ μ€‘μš”ν•œ κ°€μΉ˜λΌ μ—¬κΈ°λ©° 이λ₯Ό μœ„ν•œ λ…Έλ ₯ μ—­μ‹œ ν•΄λ‚˜κ°€κ³  μžˆμŠ΅λ‹ˆλ‹€.

λ‹€μŒμ˜ λ‚΄μš©μ€ 저희 νŒ€μ΄ μŠ€νƒ€μΌ κ°€μ΄λ“œμ— λŒ€ν•œ 철학을 μ •λ¦½ν•˜λ©° 도움을 λ°›μ•˜λ˜ μŠ€νƒ€μΌ κ°€μ΄λ“œμ΄λ©° 일뢀λ₯Ό λ°œμ·Œν•˜μ—¬ κ³΅μœ ν•©λ‹ˆλ‹€.

Use common sense and BE CONSISTENT.

If you are editing code, take a few minutes to look at the code around you and determine its style. If they use spaces around their if clauses, you should, too. If their comments have little boxes of stars around them, make your comments have little boxes of stars around them too.

The point of having style guidelines is to have a common vocabulary of coding so people can concentrate on what you are saying, rather than on how you are saying it. We present global style rules here so people know the vocabulary. But local style is also important. If code you add to a file looks drastically different from the existing code around it, the discontinuity throws readers out of their rhythm when they go to read it. Try to avoid this.

OK, enough writing about writing code; the code itself is much more interesting. Have fun!

β€”Google C++ Style Guide

참고 자료

About

Official code style guide of Banksalad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%