this post was submitted on 08 Jun 2024
720 points (97.0% liked)
Programmer Humor
32360 readers
854 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I disagree unless the tests are reasonably high level.
Half the time the thing you're testing is so poorly defined that the only way to tighten that definition is to iterate.
In this sense, you're wasting time writing tests until you've iterated enough to have something worth testing.
At that point, a couple of regression tests offer the biggest bang for buck so you can sanity check things are still working when you move on to another function and forget all about this one