Sobes.tech
Junior — Middle

What key points do you check first during code review?

sobes.tech AI

Answer from AI

When reviewing code, I primarily pay attention to:

  • Readability and clarity: the code should be understandable to other developers, using meaningful variable and function names.
  • Adherence to coding style: following the project's established coding standards.
  • Logic and correctness: ensuring the code does what it claims, with no obvious errors or bugs.
  • Redundancy and duplication: looking for repeated sections that can be extracted into separate functions.
  • Error handling: verifying that errors are handled correctly and do not cause the program to crash.
  • Testability: assessing how well the code is covered by tests and how easy it is to test.

An example of a simple comment in a review:

# It's good that try-except is used here, but it should specify which exceptions are expected.