In the TQM world this comes under the heading “any metric used to reward people will become corrupt”. H Edwards Deming was writing about this issue in the 1960s or earlier. For this reason he advocated separating data collection used to run the business from data collection used to reward people. Too often, people decide this is “inefficient” and combine the two, with predictable results. Crime statistics in the US is one terrible example of this.
From my recollection of the book I think he would say that SLOC is not actually a terrible metric and can be quite useful. I personally use it myself on my own projects—but I have no incentive to game the system. If you start paying people for SLOC you are going to get a lot of SLOCs!
Because of the history, you need to go overboard to reassure people you will not use metrics against them. They are going to assume you will use them against them, until proven otherwise.
Yes he is all over this.
In the TQM world this comes under the heading “any metric used to reward people will become corrupt”. H Edwards Deming was writing about this issue in the 1960s or earlier. For this reason he advocated separating data collection used to run the business from data collection used to reward people. Too often, people decide this is “inefficient” and combine the two, with predictable results. Crime statistics in the US is one terrible example of this.
From my recollection of the book I think he would say that SLOC is not actually a terrible metric and can be quite useful. I personally use it myself on my own projects—but I have no incentive to game the system. If you start paying people for SLOC you are going to get a lot of SLOCs!
Because of the history, you need to go overboard to reassure people you will not use metrics against them. They are going to assume you will use them against them, until proven otherwise.