points by malfist 2 days ago | 0 comments
> I looked at a pre-AI project I did a couple of years ago: test to code LOC was 0.15:1. The projects I work on now are around 1.3:1.
Lines of code is a poor metric for measuring, both for application code and testing code
[–] brookst 1 day ago
I think you meant it's a poor metric for judging. It's fine for measuring. Or do you think git should stop showing +/- line counts for PR's.
Somehow LOC morphed from one metric among many to "you should never even think about LOC, 15 lines and 15k lines are exactly the same thing". It's weird.
[–] bluGill 2 days ago
[–] OGWhales 2 days ago
[–] bluGill 2 days ago
[–] johnnyanmac 2 days ago
[–] gf000 2 days ago
[–] malfist 2 days ago
[–] gf000 2 days ago
They should write a test and stash the fix they just wrote. In this state it should fail. Once they re-apply the patch, it should become green and this gave use enough information to deduce that the test does test something.
[–] topaz0 2 days ago
[–] bluGill 2 days ago