4 ms·
I like Eric Meijer's take on this. He said that the important property of interface are not the actual method signatures, but rather laws that the methods follo
by js8 3y ago
I like Eric Meijer's take on this. He said that the important property of interface are not the actual method signatures, but rather laws that the methods follow when being called.
I think it follows that with bigger interface, there are more laws to follow (for example, read() must be called after open() but not after close()), and as a consequence, utility of that abstraction gets more limited.
- fit2rule 3y ago[dead]
- mikhailfranco 3y agoWith the corollary that the laws are complete. YAGNI takes a back seat to algebraic closure.