4 ms·
Goodhart's law in effect. I once had a job where a portion of our bonus was related to an automated code quality score. Needless to say, we reverse engineered
by zelos 5y ago
Goodhart's law in effect.
I once had a job where a portion of our bonus was related to an automated code quality score. Needless to say, we reverse engineered the algorithm and scripted the (pointless, probably slightly harmful) changes to the source to maximise the score.
- cutemonster 5y agoWhat did and didn't the score algorithm like? (Did you reverse eng it during work time :-))
- zelos 5y agoThere were several components, but the parts that were I can remember were gamed were code duplication - someone figured out the minimum number of matching lines required for it to be detected and made minor changes in the middle of blocks - and number of imports. The penalty for .* imports was quite low, so we just ended up with wildcard imports everywhere.
- cutemonster 5y agoOk :-) I'm surprised they were looking for duplicated code, interesting