5 ms·
And an even better way is to do both. You've created a completely false dichotomy.
by kscaldef 17y ago
And an even better way is to do both. You've created a completely false dichotomy.
- andreyf 17y agoGood point. I'd argue that either one discourages the other, however. The messier and more complex your architecture, the more valuable tests are. Conversely, the more unit tests you have, the sloppier you can make your architecture.
- kscaldef 17y agoAnd I'd argue the opposite. Messy, complex designs are hard to unit test. Writing unit tests encourages clean, well-defined, orthogonal interfaces.