Junior — Middle
What are the main rules and criteria you follow when performing code reviews?
sobes.tech AI
Answer from AI
In code review, I pay attention to the following main points:
- Readability and clarity: the code should be easy to understand, with clear variable and function names.
- Compliance with coding standards: adherence to accepted standards and conventions in the project.
- Logic and correctness: ensuring the code does what it claims, without errors and bugs.
- Optimization and performance: avoiding unnecessary calculations and resource usage.
- Error handling: proper management of exceptions and errors.
- Testability: the code should be covered by tests or easily testable.
- Security: absence of vulnerabilities and potential issues.
For example, if I see a long function, I suggest breaking it into smaller parts to improve readability and maintainability.