An interface should live on the consumer side in most cases. However, in particu-lar contexts (for example, when we know—not foresee—that an abstraction will be helpful for consumers), we may want to have it on the producer side. If we do, we should strive to keep it as minimal as possible, increasing its reusability potential and making it more easily composable.
标签:producer,should,mistakes,Interface,100,side From: https://www.cnblogs.com/zhangzhihui/p/18014609