3 ms·
"I stopped writing tests. Reduced the LOC by half. And with no tests, we actually find fewer bugs!" This can be true to an extent. Tests are a tradeoff that ca
by danenania 15y ago
"I stopped writing tests. Reduced the LOC by half. And with no tests, we actually find fewer bugs!"
This can be true to an extent. Tests are a tradeoff that can potentially give you better stability, yes, but at the cost of more development time, longer builds, costlier maintenance, and more surface area for bugs.
Like types, tests are appropriate in some cases, overkill in others. Imo, a lot of web functionality, especially for prototypes, isn't sufficiently complicated or critical (i.e. life or death or responsible for millions) to warrant tests, and the threshold for types is higher. Also depends a lot on the size of your team and skill of developers. If you're producing code with few bugs to begin with, tests have less value.
It's really all a matter of judgment and right-tool-for-the-job. Generalisms just aren't useful.