Coding Conventions
- Definition
- An agreement between the developers of a project to use the same style of writing code.
How does it work?
Coding conventions for all major languages are available. It's best to stick to these, as it helps new developers on the project, with previous experience in the language to fit right in.
Tools exist that can format code according to convention automatically.
Examples
- Naming conventions (using camelCase, snake_case, or PascalCase)
- Indentation style (tabs, spaces)
- Programming style conventions
When should you use it?
- Whenever multiple devolopers work on a project