3 ms·
On the contrary, using interfaces to make testable code is precisely the damage. You should be writing pure functions which are easily testable, and using inte
by andrewprock 7y ago
On the contrary, using interfaces to make testable code is precisely the damage.
You should be writing pure functions which are easily testable, and using integration code to wrap the pure and testable parts.
Interfaces are typically a hack to get around the challenge of writing well designed, pure, and testable code.
- BeetleB 7y ago> You should be writing pure functions which are easily testable, and using integration code to wrap the pure and testable parts. This often ends up with interfaces...
- andrewprock 7y agoIf you write a pure function, an interface is meaningless.
- BeetleB 7y agoThe interface comes in this part of your comment: > and using integration code to wrap the pure and testable parts.
- andrewprock 7y agoI think you and I are talking about different things when we say "integration test".