How to prevent bug

log bug is not the purpose for customer needs, and ensure product quality.

The best way to ensure quality is to prevent bug, test out the software is not good, is made out of.

Software testing is necessary but not sufficient condition to improve the quality of software products, software testing is to improve the quality of products the most direct / quickest time, but by no means a fundamental means.

The ultimate goal of producing 1 software is designed to meet customer demand, our customers demand as the evaluation of software quality standard, the specific meaning of software defects summarized in the following few:

(1) software does not meet the functional and performance requirements of customers

(2) software beyond the scope of customer needs

(3) software errors can not tolerate the emergence of customer demand

Use (4) the software failed to meet the customer's habits and work environment

Difference of 2 default failure Error Fault

(1) default exists in the deviation in software form in the presence of a static internal software, may be activated

External abnormal behavior (2) the failure to produce software running result, the performance is inconsistent with the user needs, function is terminated, the user can not complete the application needs.

(3) Error Code refers to the write error is present, one is a syntax error, the other is a logic error

State (4) Fault software running occurring, can cause unforeseen circumstances, it may be generated if the processing failure is a dynamic behavior.

 

3 the easiest Bug to chase is the one that didnot get created in the first place:it is better to prevent bugs

(1) write clean code

(2) Code multiplexing mechanism

(3) management code review mechanism

(4) to do unit testing

(5) refactoring

  a heart to adapt to the needs of users

  b partial to continue and improve the software design

  c make the code easier to be understood by humans

  d help find the hidden code defects. In the long run, this will help improve programming efficiency

Guess you like

Origin www.cnblogs.com/digitalNatives/p/12127763.html