Re:The Way We Look at Technical Debt Is Wrong
by jbooth on Wednesday May 13, 2015 @04:46PM
(#9541848)
"Maybe you're using a library that is difficult to mock. Maybe most of your logic is happening at the db layer."
At this point, your design is already screwed and borderline-unmaintainable, so yeah, I guess unit tests won't help much. But when people talk about Doing it Right, usually they mean having a codebase that's loosely coupled enough that tests are relatively simple to write.
At this point, your design is already screwed and borderline-unmaintainable, so yeah, I guess unit tests won't help much. But when people talk about Doing it Right, usually they mean having a codebase that's loosely coupled enough that tests are relatively simple to write.