Base
Practices

Code Review

Overview

Code reviews are essential for maintaining code quality, sharing knowledge, and fostering collaboration within our team. This guide outlines some practices for conducting effective and efficient code reviews. Happy reviewing!

Some General Guidelines

  1. Be respectful and constructive

    • Start with positive feedback and suggest improvements kindly.
  2. Focus on the code, not the person:

    • Critique the code, not the developer / writer
  3. Be clear and specific:

    • Provide clear, actionable feedback
    • Attach reference or examples
    • Put your position as someone who will receive the feedback / review

References: 10 Commandments of Egoless Programming

What to Look For / Questioned in a Code Review

Review Checklist

  1. Functional correctness

  2. Code Quality

    • Is it readable?
    • Any obvious bugs or code smells?
  3. Style and Conventions

    • Does it follow our standard / style guide?
    • Is the naming consistent and meaningful?
  4. Performance

    • Is the code efficient?
    • Any potential performance bottlenecks?
  5. Security

    • Any apparent security vulnerabilities?

Questions to ask to self when reviewing

  1. Is this specific code changes related to the overall intended goal of this PR or intended changes?
  2. Do I have any struggles understanding these changes? Will this code be maintainable in the future?

References

On this page