Why would you ever use an interface if you are only going to have one implementation of it?
If I knew for a fact that there would only ever be one implementation I wouldn't create an interface. This falls under YAGNI, IMO.
(Of course, it's rare that I know anything about the future for a fact...)
1.4m articles
1.4m replys
5 comments
57.0k users