6

架构师技能5:如何做code review 代码简洁之道

 2 years ago
source link: https://guisu.blog.csdn.net/article/details/122514974
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

架构师技能5:如何做code review 代码简洁之道

original.png
hguisu newUpTime2.png 已于 2022-07-08 16:03:53 修改 articleReadEyes2.png 1128

目前该文只是简单理论的总结,后续优化增加例子来说明。


CodeReview的目的是提升代码质量,尽早发现潜在缺陷与BUG,降低修复成本,同时促进团队内部知识共享,帮助更多人更好地理解系统。

如何做好code review,可以参考谷歌 code review 指南。原文地址: https://google.github.io/eng-practices/review/reviewe

1、code review从大的方面来说:

1、业务层面:业务逻辑是否正确等相关内容。例如

     1)数据库字段的设计是否合理。

     2)业务流程是否按照详细设计的流程走。

     3)业务扩展性,设计是否影响后续业务的拓展。

2、代码层面:是否符合优秀特质。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK