ZhangZhihui's Blog  

 

 

 

 

An interface should live on the consumer side in most cases. However, in particular 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.

posted on 2024-02-13 15:28  ZhangZhihuiAAA  阅读(7)  评论(0)    收藏  举报