Code Review (代码评审)
评审项目组针对代码培训的资料总结。
What is Code Review(什么是代码评审)
Code review is systematic examination (often as peer review) of computer source code intended to find and fix mistakes overlooked in the initial development phase, improving both the overall quality of software and the developers’ skills.
代码评审是指在软件开发过程中,通过对源代码进行系统性检查的过程。通常的目的是查找系统缺陷,保证软件总体质量和提高开发者自身水平。 Why we do Code Review(为什么进行代码评审)
1. 提高质量
2. 及早发现潜在缺陷与BUG,降低事故成本。
3. 促进团队内部知识共享,提高团队整体水平
4. 评审过程对于评审人员来说,也是一种思路重构的过程。帮助更多的人理解系统。
5. ??
Types of Code Review(代码评审的几种类型)
Code review practices fall into two main categories: formal code review and lightweight code review.
一般来说,代码评审分为正式代码评审与轻量级代码评审俩种. Formal Code Review(正式代码评审)
Fagan inspection(著名的范根检查法):
Fagan inspection refers to a structured process of trying to find defects in development documents such as programming code, specifications, designs and others during various phases of the software development process. It is named after Michael Fagan who is credited with being the inventor of formal software inspections.
…… …… 余下全文