this post was submitted on 30 Jan 2025
1066 points (97.7% liked)

Programmer Humor

20886 readers
1285 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 month ago (3 children)
[–] [email protected] 7 points 1 month ago* (last edited 1 month ago) (1 children)

If the tests pass, then everything is fine... Unless we expected the tests not to pass...then it's time to burn the codebase down and try again after a long vacation to clear our heads.

Of course, I'll usually settle for fixing the test suite after a long weekend. But in my heart, I'll know what I should have done...

[–] [email protected] 7 points 1 month ago (1 children)

...or you can just delete the failing tests :)

[–] [email protected] 7 points 1 month ago (1 children)
[–] [email protected] 4 points 1 month ago

Delete all the tests!

[–] [email protected] 3 points 1 month ago

If the tests don't give any insight into the functionality it is testing, they are probably not the best tests.

[–] [email protected] 1 points 1 month ago (1 children)

My tests always pass! They've never failed, that's how good a programmer I am!

[–] [email protected] 1 points 1 month ago (1 children)

You deleted the failing test, didn’t you

[–] [email protected] 1 points 1 month ago

Test can never fail if it never makes any real assertions!