language agnostic - Length of Character as a valid measure for source code -


Say lenchar is the number of characters in the source code, is it a valid solution for the length of the source code?

No, it is not. People without quality can play your "metric"

If you are a metric then "many characters == good" then you end up with very large source files & amp; Classes that are bad dreams of maintenance, often very bad names (only once, to play your metric) or obscene amounts of comments:

  var excessive songwriting informationWithtimetimecomputerOstin isrewardsMettle = 0; / * For the loop loop on the entire collection (as implemented in IEnumerable and later fully explained). My goal here was an O (1) implementation, but since then it is not very likely (potentially mathematically impossible, but I am not PhD so I will leave them. 9 (inclusive) * / for (int i = 0; i & lt; 10; i ++) yoga + i =   

On the contrary, when "many characters == Bad "then you end up with very bad names:

  var x = 1   

The executable line will be better, however Still you can "gaming." But even then, any one of the no-op lines can play it by pumping into a group.

You are the best, like the matrix ... < Ul>

  • Does this work?
  • Does it work fast for our needs?
  • Has it been investigated?
  • Etc.

  • Comments