当前位置:网站首页>Code review concerns
Code review concerns
2022-07-06 01:19:00 【hursing】
Review Can be divided into 3 A level , The higher level will contain the lower level content .
One 、 primary , Specification level
Not familiar with relevant code , Can only review Compliance with specifications , Based on readability . Specifications as per 【 Language > frame > system platform > project > company > Same as the context 】 To comply with . concerns :
- Code specification , name :< Variable | Constant | function | class | file | Catalog > Named < Case write | abbreviation | Minus sign or underline > etc.
- Code specification , Format : Line break 、 Blank line 、 Space 、tab Or the number of spaces 、include/import Sort, etc
- Code specification , Content : notes 、 Function body line limit 、 exception handling 、 No zombie code 、 There is no magic number 、 Whether to use Lamda Expression etc.
- Code specification , Location : Catalog 、 Package or namespace hierarchy
- Use standard , Internal agreement : whether 【 Unified use or can't use 】 Specific functions 、 Interface 、 library . For example, logs are printed through encapsulated classes
- Submit specifications :commit log Compliance with specifications ; Are there different tasks ( Demand or bugfix) Submit separately , Whether to merge and submit the same task
- Branch specification : Whether to submit in the right branch , For example, version . There are additional requirements , For example, do not submit and repair after the test bug Irrelevant code , Go to the next version or temporary branch to submit .
- review Process specification : Whether to give it to the right person review、 Copy in place 、 Modify according to opinions
- design code : Follow basic design principles , The responsibilities of each category are simple and clear , decoupling .
- Document specifications : Is it necessary to write documents if the complexity is high , Whether the implementation is consistent with the document .
Two 、 intermediate , Performance architecture level
Familiar with relevant code but not familiar with requirements , More attention can be paid to technical design , Value performance 、 Extensibility 、 Maintainability 、 Security 、 Stability, etc . concerns :
- Cross module / application / End to end interaction , Is the design reasonable , Whether coupling is introduced
- Application of design principles and design patterns
- Asynchrony and atomicity :Timer、 Cross thread 、 Cross process 、 lock
- performance :IO Duration , Whether background thread execution is required , Whether there are redundant operations ,lazy load,SQL Optimize 、 Algorithm complexity, etc .
- journal 、 The burial point is reasonable , The cause of the abnormal condition can be found in the log , Nor abuse .
- Safety considerations : encryption 、 Inspection, etc
- Major anomalies are UI Tips , It is convenient for users to help locate problems .( This scenario cannot be proposed by products )
- Extensibility : Whether it is flexible enough to cope with changes
- Whether wild pointers or memory resident objects will be generated
3、 ... and 、 senior , Demand level
Familiar with code and requirements , Will pay attention to more details , Generally, pair programming can achieve this level . concerns :
- UI: copy 、 size 、 Color 、 shadow 、 typeface 、 Alignment mode 、 Front and back levels 、 Animation 、 picture 、 voice 、 Video etc. , It may be different in different states
- Function and process logic : Entrance and exit 、 State and condition 、 The rules ( type 、 precision 、 Value range 、 The default value is 、 Display format 、 Calculation processing method, etc )、 Abnormal situation ( Know the probability and the source cause ).
- Bugfix, Can it really be solved bug.
边栏推荐
- VSphere implements virtual machine migration
- Recoverable fuse characteristic test
- Live broadcast system code, custom soft keyboard style: three kinds of switching: letters, numbers and punctuation
- Electrical data | IEEE118 (including wind and solar energy)
- Kotlin basics 1
- Gartner released the prediction of eight major network security trends from 2022 to 2023. Zero trust is the starting point and regulations cover a wider range
- 视频直播源码,实现本地存储搜索历史记录
- Remember that a version of @nestjs/typeorm^8.1.4 cannot be obtained Env option problem
- Finding the nearest common ancestor of binary search tree by recursion
- Leetcode1961. Check whether the string is an array prefix
猜你喜欢
The growth path of test / development programmers, the problem of thinking about the overall situation
Four dimensional matrix, flip (including mirror image), rotation, world coordinates and local coordinates
yii中console方法调用,yii console定时任务
Cf:h. maximum and [bit operation practice + K operations + maximum and]
Ordinary people end up in Global trade, and a new round of structural opportunities emerge
普通人下场全球贸易,新一轮结构性机会浮出水面
View class diagram in idea
How to see the K-line chart of gold price trend?
servlet(1)
Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...
随机推荐
Modify the ssh server access port number
Unity VR solves the problem that the handle ray keeps flashing after touching the button of the UI
Vulhub vulnerability recurrence 75_ XStream
Hcip---ipv6 experiment
Idea sets the default line break for global newly created files
Dede collection plug-in free collection release push plug-in
ORA-00030
How to see the K-line chart of gold price trend?
Test de vulnérabilité de téléchargement de fichiers basé sur dvwa
Building core knowledge points
Zhuhai's waste gas treatment scheme was exposed
【第30天】给定一个整数 n ,求它的因数之和
Beginner redis
WGet: command line download tool
Leetcode 208. 实现 Trie (前缀树)
ThreeDPoseTracker项目解析
程序员搞开源,读什么书最合适?
MUX VLAN configuration
网易智企逆势进场,游戏工业化有了新可能
SCM Chinese data distribution