KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Of late, I have been reading posts which talks about the supposed wrong notion that interfaces are abstractions. One such post is http://blog.ploeh.dk/2010/12/02/InterfacesAreNotAbstractions.aspx I am a bit confused. If I don't have interfaces (interface/abstract class), then how will I inject my dependencies and mock them? Also, I have heard people talk about not using interfaces which has just one implementor. Like this blog here - http://simpleprogrammer.com/2010/11/02/back-to-basics-what-is-an-interface/ Now all this, doesn't it violate the principle - Program to an interface and not implementation?
Tags (comma-separated)
Save Edits
Cancel