5 ms·
Agreed. My net total for LOC written in the past year is probably -700, because I've refactored so much verbose code. I don't know how to count unit tests in s
by barnaby 15y ago
Agreed. My net total for LOC written in the past year is probably -700, because I've refactored so much verbose code.
I don't know how to count unit tests in such a metric though... because I took a code base from 2% code coverage to 70% and that meant writing something like 200 LOC in unit tests alone per day, even though the actual code being refactored under these tests diminished in size.
- bartwe 15y agoI'd count the unittest code too, it needs to be maintained too.
- esrauch 15y agoIt's easier to maintain unit tests if you write unit unit tests for them.
- sirclueless 15y agoYou laugh, but if someone accidentally shipped some code in their unit test library that made assertEqual(1, 2) always return true I might be a very unhappy camper.