Coding Standards
Coding Standards
� JavaScript/TypeScript: Avoid using var; prefer const and let for block
scope.
� Python: Follow PEP 8 standards, especially for indentation, imports,
and naming.
� Java: Follow Oracle�s code conventions, especially for file structure,
naming, and access modifiers.
� Avoid Deep Nesting: Deeply nested code can become hard to read.
Refactor to reduce nesting.
� Use Descriptive Variable Names: Avoid single-character names (except in
loops like i), and be descriptive to clarify their purpose.
� Single Coding Style: Follow one consistent coding style throughout the
project to make it easier to read and maintain.
� Linting and Formatting Tools: Use tools like ESLint, Prettier, or Black
(for Python) to automatically format code consistently.
� Named Constants: Replace numbers with named constants to make code more
understandable (e.g., MAX_USERS = 100 instead of just using 100 in the code).
� Helps to convey the purpose of values and allows for easier updates if
values change.
� Code Review: Establish a code review process to ensure all code meets
the team�s standards.
� Feedback Process: Provide constructive feedback that aims at improving
code quality without personal criticism.