Home > Back-end >  Debugging stage, per one thousand lines of code will be how many modifications
Debugging stage, per one thousand lines of code will be how many modifications

Time:11-07

Because of the lack of debugging environment, there are tens of thousands of lines of code, only compiled, without debugging,
Now, is in debugging, now find lines every 6 ~ 7 actual code there is a change,

Everyone is modify the quantity of each?

CodePudding user response:

I tend to be written a small business, you can test it, not the experience of writing tens of thousands of lines to debug, but it is really as you say every 6 ~ 7 line is about to change a word is too much, I think the average almost 6 ~ 7 function changes

CodePudding user response:

Are too exaggerated, I didn't write a function to test the function into the module set tests again,,,
There are few written tens of thousands of lines of code and debugging,,,


No debugging environment it's excuse, and not all of the code are geared to the needs of the hardware,
As some of the business, or public string handling functions, such as old early can test,

CodePudding user response:

Habitual code running on the board before all useful simulation environment debugging
Seldom go to wait for anybody else all well, and then go to butt joint debugging

CodePudding user response:

Much more to become accustomed to,

CodePudding user response:

The goal of this post is the statistics, we just finished writing the code, just compiled through, no debugging, also have no unit tests, probably an error rates,

Personally, I write better code error rate for the actual code is 6 ~ 7 guild has a change, bad or more complex code, almost in the process of unit testing, each line to be modified or reconstructed,

Myself every day about code quantity can reach an average of 1500 lines, of which 40% or so of annotation, after preliminary debugging code, can guarantee the normal process can be performed, and no memory leaks,
  • Related