Working on code as a team
Code review and documentation
代码审查与文档
In code review a teammate reads the changes before they are merged, catching bugs, suggesting clearer approaches and checking that the code follows the team's style.
Review is not about finding people's faults but about protecting the product and learning from each other, so comments are written kindly with reasons, and the author takes them without taking offence.
Small changes are easier to review than big ones: a fifty-line pull request gets careful review, while a two-thousand-line one is often approved without real reading.
Documentation explains to others, and to you months later, how the project works: a README with its purpose and how to run it, comments on the tricky parts, and API documentation.
Commit messages are documentation too: a message like "Fix dictionary saving error" is far more useful than "changes". A project without documentation is hard for anyone new to join.
Ask the AI assistant
Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.
The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.
The content is simplified and covers the basics only.