I have seen people writing code which is hard to test and later writing tests just for the sake of it. Although having some tests is better than having no tests, you should always write tesable code.
I have seen people writing code which is hard to test and later writing tests just for the sake of it. Although having some tests is better than having no tests, you should always write tesable code.