4 ms·
That's a myth. It teaches you to write code which is easily unit testable. That may be a better architecture than the one you would have used, but often it's ju
by sgift 7y ago
That's a myth. It teaches you to write code which is easily unit testable. That may be a better architecture than the one you would have used, but often it's just a different architecture, sometimes even markedly worse.
I have seen far too many code bases with simple things chopped up beyond recognition to make the code unit testable.
- anthonyrstevens 7y ago"[S]imple things chopped up beyond recognition" sounds like a hyperbolic argument to me. What is an example? When is the maxim "A function should do one thing well" not applicable?