Re:A Theory of Software Architecture
by Izkata on Wednesday October 28, 2020 @09:23AM
(#24918427)
For 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.
[ Parent
| on HN ]
There are no comments on this comment yet.