T
tenxian
Can interaction among objects only be taken place via interfaces?
Can interaction among objects only be taken place via interfaces?
tenxian said:Can interaction among objects only be taken place via interfaces?
Lew said:Controversial.
Lew said:The part that was controversial was "a designer who insists on using
interfaces for all interactions, that's a good thing", not a designer
who "creat[es] interfaces and cod[es] (and test) to those interfaces
rather than concrete objects". Of course I agree that the latter is a
good thing, and I don't think it is controversial. Nor do I think
serious thinkers would propose that "coding to interfaces [is]
unnecessary."
Isn't that called a straw-man argument, where one restates someone's
position into a refutable one that was not the original point?
What is controversial is the carrying of that to extremes: one who
*insists* that *all* interactions go through interfaces, and the notion
that that insistence is "a good thing". In this very newsgroup, you may
have noticed that very controversy raging. So yes, it is
controversial. The evidence is the people vehemently disagreeing in
public on that very point.
It has come up in the thread "Composition vs. inheritance". There's
some talk there about whether concrete inheritance is evil.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.