当前位置:网站首页>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.
边栏推荐
- Dede collection plug-in free collection release push plug-in
- Leetcode 208. Implement trie (prefix tree)
- Live broadcast system code, custom soft keyboard style: three kinds of switching: letters, numbers and punctuation
- SCM Chinese data distribution
- Recursive method to realize the insertion operation in binary search tree
- Development trend of Ali Taobao fine sorting model
- [day 30] given an integer n, find the sum of its factors
- 在产业互联网时代,将会凭借大的产业范畴,实现足够多的发展
- A glimpse of spir-v
- 黄金价格走势k线图如何看?
猜你喜欢
Four commonly used techniques for anti aliasing
MATLB|实时机会约束决策及其在电力系统中的应用
WordPress collection plug-in automatically collects fake original free plug-ins
Loop structure of program (for loop)
General operation method of spot Silver
Yii console method call, Yii console scheduled task
282. Stone consolidation (interval DP)
Daily practice - February 13, 2022
IP storage and query in MySQL
Dedecms plug-in free SEO plug-in summary
随机推荐
Remember that a version of @nestjs/typeorm^8.1.4 cannot be obtained Env option problem
Condition and AQS principle
Blue Bridge Cup embedded stm32g431 - the real topic and code of the eighth provincial competition
一圖看懂!為什麼學校教了你Coding但還是不會的原因...
Basic process and testing idea of interface automation
Cf:h. maximum and [bit operation practice + K operations + maximum and]
C language programming (Chapter 6 functions)
JVM_ 15_ Concepts related to garbage collection
Unity | two ways to realize facial drive
Distributed base theory
Fibonacci number
Leetcode1961. Check whether the string is an array prefix
Leetcode sword finger offer 59 - ii Maximum value of queue
Is chaozhaojin safe? Will it lose its principal
Five challenges of ads-npu chip architecture design
Leetcode 208. 实现 Trie (前缀树)
3D model format summary
SCM Chinese data distribution
Zhuhai's waste gas treatment scheme was exposed
1791. Find the central node of the star diagram / 1790 Can two strings be equal by performing string exchange only once