DEV Community

Discussion on: Is testability a reason to change your design?

Collapse
 
hudsonburgess7 profile image
Hudson Burgess

Would you change your design just to achieve/improve testability?

I think there's somewhat of a hidden assumption that "changing your design" in the context of this question means "massively changing your design." That doesn't have to be the case.

I've found that refactoring lower levels of an application (more on that here) usually cleans up higher levels pretty quickly, without a lot of architectural overhauling.

Collapse
 
n_develop profile image
Lars Richter

I think there's somewhat of a hidden assumption that "changing your design" in the context of this question means "massively changing your design."

In this discussion, most people have this assumption. But, personally, I find myself in such discussions about small changes. Like the one in the post, when I'm just introducing an interface.