먼저, 스타일 가이드란 뭘까?
각 언어마다 존재하는 '설명서' 같은 것이다.
가독성 좋은 코드를 작성하는 데 있어서 굉장히 중요한 부분 중 하나이다.
변수 설정, 코멘트, 들여 쓰기 등등....에 대한 규칙들이 미리 정해져 있다.
스타일 가이드를 잘 적용시키면 가독성이 좋을 뿐 만 아니라,
여러 사람들이 동시에 작업을 할 때 생길 수 있는 혼선을 막을 수 있다.
내가 사용하는 언어에 대한 스타일 가이드를 찾아서,
이를 참고하여 코드를 작성해보자.
예를 들어,
파이썬을 사용한다고 하자.
그러면 다음과 같이 구글에 검색을 해주면 된다.
그러면 이런식으로 결과가 나온다.
자신이 사용하는 언어에 알맞는 스타일 가이드를 찾아본 뒤,
그에 맞게 코딩을 해보길 바란다.
JavaScript 스타일 가이드
JavaScript 표준 스타일 가이드
JavaScript Standard Style
JavaScript Standard Style Sponsored by English • Español (Latinoamérica) • Français • Bahasa Indonesia • Italiano (Italian) • 日本語 (Japanese) • 한국어 (Korean) • Português (Brasil) • 简体中文 (Simplified Chinese) •
standardjs.com
Airbnb JavaScript 스타일 가이드
https://github.com/airbnb/javascript
GitHub - airbnb/javascript: JavaScript Style Guide
JavaScript Style Guide. Contribute to airbnb/javascript development by creating an account on GitHub.
github.com
Google JavaScript 스타일 가이드
https://google.github.io/styleguide/jsguide.html
Google JavaScript Style Guide
Google JavaScript Style Guide 1 Introduction This document serves as the complete definition of Google’s coding standards for source code in the JavaScript programming language. A JavaScript source file is described as being in Google Style if and only i
google.github.io
Java 스타일 가이드
Java를 소유한 회사 오라클의 스타일 가이드
https://www.oracle.com/technetwork/java/codeconvtoc-136057.html
Google Java 스타일 가이드
https://google.github.io/styleguide/javaguide.html
Google Java Style Guide
1 Introduction This document serves as the complete definition of Google's coding standards for source code in the Java™ Programming Language. A Java source file is described as being in Google Style if and only if it adheres to the rules herein. Like ot
google.github.io
'기타 등등 > 프로그래밍 관련 정보' 카테고리의 다른 글
컴파일러_인터프리터 (0) | 2021.09.17 |
---|---|
프로그래밍_유용한 프로그램들 (0) | 2021.09.17 |
좋은 코드를 찾는 법_더 좋은 코드를 작성하는 법 (0) | 2021.09.17 |
티스토리/블로그에 코드 게시하는 법 (0) | 2021.09.16 |