3 ms·
Manual testing and design patterns that isolate the effects of a change from the rest of the system. I am going to manually test things anyways, so in practice
by mobjack 6y ago
Manual testing and design patterns that isolate the effects of a change from the rest of the system.
I am going to manually test things anyways, so in practice, unit testing usually takes longer.
I am more likely to add robusts tests to parts of the code that are harder to test manually as it does save time in that instance.
Ironically, I find that well tested code gives me less incentive to refactor it. Refactoring is good for allowing future changes without breaking things. With good testing, I rely on tests to provide those guardrails instead of a clean code structure.
- bcrosby95 6y agoI guess it depends upon what kind of code you end up writing most. I tend to find lots of code I write has more complexity in the business logic sections than the UI itself - there are lots of corner cases with no impact on the UI. I find automated testing (not necessarily TDD) adds a lot of value over manual testing in these scenarios. And the automated tests tend to pay off either at development time or after even a single change.