this post was submitted on 25 Oct 2026
371 points (95.1% liked)

Programmer Humor

33823 readers
2008 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 3 years ago
MODERATORS
 

Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

you are viewing a single comment's thread
view the rest of the comments
[–] capital5@discuss.tchncs.de 2 points 2 days ago

Unit tests are good IMO, but integration tests are also important. Unit tests are too discrete and don't expose system wide issues that cross the boundaries of what you're testing at the unit level. Examples: performance, stability, memory leaks, bugs that are caused by how multiple components interact with each other, etc.

The other thing is that I think people use tests to give a false sense of security. Tests cannot expose issues that aren't explicitly covered by testing. Design validation is still important and people tend to overlook that because of the false sense of security they get from seeing a test suite pass.