3 ms·
The less code you write the fewer bugs, so LOC should be a good indicator of code quality :P But bugs alone says nothing about code quality, the more you look,
by z3t4 4y ago
The less code you write the fewer bugs, so LOC should be a good indicator of code quality :P
But bugs alone says nothing about code quality, the more you look, the more bugs you will find. More popular software will have more bugs (found).
Style guides are not the same as quality. Some people argue about line length, white space, and where to put line breaks, but that has nothing to do with the quality of the code/software, but it's easy to measure.
Do you understand what the code does ? How easy is it to make a change ? Comprehension and maintainability probably results in better code/software quality, but is difficult to measure.
Maybe if we measure the average bug count per user, as well as let users assess/rate the software - does the code/software do the job it was written for?