4 ms·
A large application has lots of implementation leak to the API, doesn't it?
by winkeltripel 6y ago
A large application has lots of implementation leak to the API, doesn't it?
- Izkata 6y agoFor this reason, when mocks are involved (that is, just about any external API), I think Listing 2 is the ideal - extract a small function designed around the desired interface, a facade that's easily mockable and won't change with the library implementation.