4 ms·
Of course any metric can be rendered useless if one "works the metric" rather than the intent of the metric. But in my experience, code covering unit tests hav
by WalterBright 10y ago
Of course any metric can be rendered useless if one "works the metric" rather than the intent of the metric.
But in my experience, code covering unit tests have correlated strongly with faster development and far fewer bugs being uncovered in the field.
- dragonwriter 10y ago> Of course any metric can be rendered useless if one "works the metric" rather than the intent of the metric. If the metric actually measures the figure of merit rather than a proxy with no necessary linkage, this is not true; working the metric then is working the intent of the metric. The extent to which a metric can be "worked" distinct from its intent is exactly the extent to which it is measuring something disconnected from what it is used to assess.
- zbx223 10y agoI do not understand how this is connected to what Walter Bright wrote. He has an excellent point.
- ZeroGravitas 10y agoEven if the measure is accurate, there's an opportunity cost for spending time on things that are also important, but not measured. You'd need a measure that covered everything, from sufficient speed optimisations to fulfilling customer desires to complying with all relevant legal requirements, which basically can't exist.