博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Best Practice Techniques for Code Reviews
阅读量:4039 次
发布时间:2019-05-24

本文共 1173 字,大约阅读时间需要 3 分钟。

Regardless of which type of lightweight code review your team chooses, developers can apply proven techniques that prevent wasted time and improve results.
1. Limit the time dedicated for code review
Spend no more than 60 to 90 minutes performing code reviews.
2. Go slowly
To ensure an effective review, do not review more than 200 to 500 lines of code per hour.
3. Limit the amount of code reviewed
Try to limit the total amount of code for a review to 200 to 400 lines.
4. Annotate the materials before the review starts
By looking at code using tools other than their standard editors, developers can often spot problems in their own code before the review begins.
5. Keep Review checklists short
If your team relies on checklists, make sure that they don’t include items that are obvious or can be detected via automation. Instead make sure that they focus on things that are easy to forget (e.g. “Are all errors handled correctly every where?”).
Best practices are valuable in that they help users deliver repeatable process that they can tie to a ballpark prediction of results. The next point of consideration is the timing of code reviews in the Agile environment.

转载地址:http://oovdi.baihongyu.com/

你可能感兴趣的文章
Matlab与CUDA C的混合编程配置出现的问题及解决方案
查看>>
python一句话之利用文件对话框获取文件路径
查看>>
PaperDownloader——文献命名6起来
查看>>
如何将PaperDownloader下载的文献存放到任意位置
查看>>
C/C++中关于动态生成一维数组和二维数组的学习
查看>>
JVM最简生存指南
查看>>
Java的对象驻留
查看>>
logback高级特性使用(二) 自定义Pattern模板
查看>>
JVM并发机制探讨—内存模型、内存可见性和指令重排序
查看>>
可扩展、高可用服务网络设计方案
查看>>
如何构建高扩展性网站
查看>>
微服务架构的设计模式
查看>>
持续可用与CAP理论 – 一个系统开发者的观点
查看>>
nginx+tomcat+memcached (msm)实现 session同步复制
查看>>
c++字符数组和字符指针区别以及str***函数
查看>>
c++类的操作符重载注意事项
查看>>
c++模板与泛型编程
查看>>
WAV文件解析
查看>>
WPF中PATH使用AI导出SVG的方法
查看>>
WPF UI&控件免费开源库
查看>>