2 ms·
You mean that the tests will depend on the thing being tested? What a crime! > what if at some point later another developer adds a database call into the stat
by marcosdumay 9y ago
You mean that the tests will depend on the thing being tested? What a crime!
> what if at some point later another developer adds a database call into the static method to do some logging?
Then you have a developer that does not grasp the idea of functions, and how they can help you improve your code. That's a call for education, not for changing your tests.
- hacker_9 9y agoThe point is that tests are omnipresent, people aren't. I've worked at places where all sorts of dumb code has got through because there is no automation in place to stop it, and everyone else is too busy to do code reviews.