Code Monkey home page Code Monkey logo

Comments (1)

toolness avatar toolness commented on August 24, 2024

Goals

Code review is about making software more efficient and improving bus factor. It's also about building community and establishing empathy with one's fellow developers.

To this end, we should shape code review practices such that people come out of a code review with:

  • A feeling that they have learned or taught something about how to engineer software better;
  • A feeling that they have strengthened a relationship with at least one fellow developer, contributing to an atmosphere of camaraderie and support;
  • A feeling that they have contributed something meaningful to the software project in a timely manner.

Best Practices

  • Prefer to review less than 200-400 lines of code at a time.
  • Pair programming, in which the engineer less experienced with the codebase "drives" and the more experienced engineer "navigates", is an acceptable alternative to asynchronous code review.
  • Synchronous code review via videoconferencing is an acceptable alternative to asychronous, text-based code review.
  • When synchronously pair programming or code reviewing, consider making multiple commits during the process so that your learning process is documented.
  • If you spot only a few trivial errors that you can easily fix yourself, consider merging the PR, fixing the errors yourself in a separate commit, and linking to said commit in the PR's comments. Be sure to encourage the contributor to look at the commit so they can learn from their mistakes, and offer to answer any questions they have about them.
  • Respond to a pull request within 24-48 hours, even if it's just to say that you can't review the code for another couple of days.
  • Consider using animated gifs and/or emojis in your comments, especially when thanking a contributor. This helps foster a positive emotional association with code review, as well as building team camaraderie.

References

code-review

from engineering-handbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.