Quantcast
Channel: User Filip Milovanović - Software Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 167

Comment by Filip Milovanović on Does the signature of a method create a dependency between the implementation of that method, and the code that invokes it?

$
0
0
I think the author made a poor choice of words. The signature of a method is to a method as an interface is to a class, so client code (callers) and the method's implementation are both dependent on the signature (really, it's dependency inversion at the function level). A good design is one that takes advantage of that, buy conceptualizing the method in some way that makes the signature more stable with respect to (some set of) changes then either the client code or the underlying implementation.

Viewing all articles
Browse latest Browse all 167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>