3 ms·
It’s called separating interface from implementation. When using an interface, only make assumptions on what the interface specifies, and not on how it may happ
by layer8 4y ago
It’s called separating interface from implementation. When using an interface, only make assumptions on what the interface specifies, and not on how it may happen to be implemented. When implementing an interface, only make assumptions on what the interface specifies, and not on how it may happen to be used.
- gadflyinyoureye 4y agoEven this confuses people. Often the name of the interface is something like S3Client. No, the name should be something like PolicyWriter.