News for hackers. Stuff that matters.
Re:Interfaces Generally Belong with Users by sagichmal on Saturday November 23, 2019 @09:13PM (#21617926)
If I take a complete Backend but only use 1 of 10 methods, that relationship is better expressed as an interface with that single method. Constraining the possible behavior of that code via this kind of contract makes it easier to understand (the signature says more by permitting less) and test (the interface provides a natural mock point).

There are no comments on this comment yet.