News for hackers. Stuff that matters.
Re:Write tests. Not too many. Mostly integration by marcosdumay on Friday October 27, 2017 @11:33AM (#15569383)
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.

Re:Write tests. Not too many. Mostly integration by hacker_9 on Friday October 27, 2017 @11:42AM (#15569482)
The 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.