Code review stuff

define

Code review (English: Code review) is a systematic review of computer source Code, usually in the form of software peer review. Its purpose is to find and correct the errors not found in the early stage of software development, and improve the quality of software and the technology of developers. Code reviews often take different forms, such as pair programming, informal reviews of the entire code, or formal software reviews

from wiki

About the process

  • Time: preferably 1 hour before work every day or 3 days a week
  • Host: meeting room, presided over by the leader
  • Content:
    • Each person in the group calls out 400 lines of master logic to look at
    • After everyone is briefed,QA
    • Pick valid suggestions and annotate them into upsource’s code review system

listing

  • Review the content
    • Code security
    • The code performance
    • Code comments
    • Unit testing
    • Code optimization
      • formatting
      • classification
      • Encapsulation method

Pay attention to

  1. Code reviews should be routine
  2. Don’t review too much, focus on the main logic, and don’t exceed 400 lines
  3. Keep peace with the code review process and treat everyone with respect

supplement

Upsource is jetbrain’s collaborative code review system that displays comments in real time with IDEA. It’s free to install, but you can’t have more than five team members. If more than the need to give money to buy authorization; Free code review for teams. I’m using it right now. It feels ok.

Contact me: [email protected] QQ: 1344115844