3 ms·
I'm not pitching comments as a replacement for all tests, like some are pitching tests as a replacement for all comments. I'm pitching comments as a compromise
by vkou 4y ago
I'm not pitching comments as a replacement for all tests, like some are pitching tests as a replacement for all comments.
I'm pitching comments as a compromise when the test that encodes their meaning is impractical.
- lmm 4y agoCombining tests and comments is still not going to get you to 100% coverage though. So for comments to be worthwhile the marginal gain from using them has to outweigh the cost. IME it's usually better to put that effort into better tests/tooling/etc..
- latchkey 4y agoI'm curious, who is pitching for that?