Necessity to introduce code standard check

xiaoxiao2021-03-06  27

Software quality guarantee pay / return curve I will not say much, we always adhere to a principle: do the most suitable thing in the most suitable time period!

This is an effective resolution strategy that can solve the problem of many quality management.

We usually ignore or deliberately "stealing" behavior in the code preparation stage, which will definitely be highlighted in the later product life cycle. This leads to a defect in the life cycle of the product, and the maintenance costs are restored in time. There are two kinds of the best ways to solve this problem, one is a dynamic unit test, and the other is a static code taken. There are basically two forms of code takes out: artificial investment and tools.

Both forms can achieve the same purpose, how to choose to see the actual business characteristics.

The following is a simply speaking the benefits of code standard checks.

1. Can reduce the "pen error" situation;

2, make the code more rigorous;

3. It is conducive to realizing the unique culture of the company to achieve standardized management.

× For the first point, the programmer often appears when writing code, and most software defects are due to "pen."

× Second, the so-called code is rigorous, that is, check whether the code takes into account in the process of processing. This is where the programmer is most likely to be wrong, often forget the processing of function return value, the validity check of function parameters, etc.

× Third, each programmer has its own "writing" style, and each company also has its own code preparation specification. The starting point of the specification is good, but the norms will also cause some problems in the promotion of the standards. For example, if this specification is very clear? Whether all the programmers strictly follow the actual coding? Therefore, introduction of code standard check is a necessary measures!

In addition, I recommend "automation" on the code standard check. Now this tool is very much, the benefits it bring is very obvious. You can make testers or developers more time to focus on places where they need to think.

转载请注明原文地址:https://www.9cbs.com/read-39640.html

New Post(0)