this post was submitted on 07 Jul 2025
710 points (100.0% liked)

Programmer Humor

24948 readers
1340 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] 1 points 3 days ago

Tests can be messed up just like anything else can be messed up. Doesn't mean that the concept itself is flawed.

If you only do things that people cannot mess up, then you'll quickly end up not doing anything at all.

The biggest benefit to me that testing has is when refactoring. If I have decent test coverage and I change something major, tests help me to see if I accidentally broke something on the way, which is especially helpful if I am touching ancient code written by someone who left the company years ago.