当前位置:网站首页>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.
边栏推荐
- Three methods of script about login and cookies
- 朝招金安全吗 会不会亏损本金
- Obstacle detection
- Finding the nearest common ancestor of binary tree by recursion
- What is weak reference? What are the weak reference data types in ES6? What are weak references in JS?
- Some features of ECMAScript
- Questions about database: (5) query the barcode, location and reader number of each book in the inventory table
- 一图看懂!为什么学校教了你Coding但还是不会的原因...
- WordPress collection plug-in automatically collects fake original free plug-ins
- internship:项目代码所涉及陌生注解及其作用
猜你喜欢
随机推荐
leetcode刷题_验证回文字符串 Ⅱ
Threedposetracker project resolution
Beginner redis
ubantu 查看cudnn和cuda的版本
JVM_ 15_ Concepts related to garbage collection
Exciting, 2022 open atom global open source summit registration is hot
Zhuhai laboratory ventilation system construction and installation instructions
SPIR-V初窺
[day 30] given an integer n, find the sum of its factors
GNSS terminology
Logstash clear sincedb_ Path upload records and retransmit log data
Mlsys 2020 | fedprox: Federation optimization of heterogeneous networks
Yii console method call, Yii console scheduled task
A glimpse of spir-v
SSH login is stuck and disconnected
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
Superfluid_ HQ hacked analysis
Live video source code, realize local storage of search history
关于softmax函数的见解
Who knows how to modify the data type accuracy of the columns in the database table of Damon