Hacker News new | past | comments | ask | show | jobs | submit login

In that case you have more than one implementation, or at least a reasonable expectation that it will be used. I don't have a problem with that.

My comment was regarding interfaces used internally within the code, with no expectation of any external use. I wrote from a modern Java perspective, with mockable classes. Apparently interfaces are used by .Net to create mocks in unit tests, which could be a reason to use that approach if that is considered "best practice"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: