Section 1: General Principles
- **Readability:** Code should be easy to understand, with clear variable names and meaningful logic.
- **Consistency:** Use the same coding style throughout the project.
- **Simplicity:** Keep the code as simple as possible while still achieving the desired result.
- **Error Prevention:** Minimize the chances of errors by anticipating potential issues.
Section 2: Specific Conventions
- **Indentation:** Use consistent indentation (typically 2 spaces). Don't use tabs. */
return x * 2;
- **Line Length:** Keep lines of code to a reasonable length (typically around 80-100 characters). Use appropriate whitespace.
- **Whitespace:** Use whitespace to separate logical blocks of code. Don't indent code blocks.
- **Comments:** Add comments to explain complex or non-obvious code. Keep comments concise and informative.