2 ms·
I wish more people believed this. The number of lines of code I've seen written of pointless unit tests is staggering. If your code is mostly passing data arou
by pydry 6y ago
I wish more people believed this. The number of lines of code I've seen written of pointless unit tests is staggering.
If your code is mostly passing data around and managing side effects a unit test is more like a parasite. It will couple to your code and fail noisily when refactoring but not provide any actual useful feedback.
- closeparen 6y agoMy armchair psychoanalysis is that it’s precisely poor effort:reward ratio that makes people feel superior for writing and demanding them. Look at me, I am a responsible engineer who tests thoroughly, you childish cowboys are trying to wriggle out of doing your chores. No, I’m still going to sweep the floor, just not with a toothpick.