this post was submitted on 30 Jan 2025
963 points (98.1% liked)

Programmer Humor

20215 readers
1659 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 day ago (3 children)
[–] [email protected] 1 points 5 hours ago (1 children)

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

[–] [email protected] 1 points 2 hours ago (1 children)

You deleted the failing test, didn’t you

[–] [email protected] 1 points 55 minutes ago

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

[–] [email protected] 3 points 22 hours ago

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

[–] [email protected] 7 points 1 day ago* (last edited 1 day 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 day ago (1 children)

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

[–] [email protected] 7 points 23 hours ago (1 children)
[–] [email protected] 4 points 18 hours ago

Delete all the tests!