DEV Community

Discussion on: Death by Interfaces?

Collapse
 
jeastham1993 profile image
James Eastham

Fascinating article Matt sand really interesting points.

I love interfaces and think the decoupling they bring are a huge plus to refactoring without worry.

That said, I do massively agree with your point on legibility. Being able to jump to the definition of an object is really useful, with interfaces you lose that.

I find myself jumping between interfaces, the DI creation (startup.cs) for example and actual definitions which can be a pain.

I try to minimise interfaces where possible, only using them where I think there is a true need for easy substitution (database interactions being a primary candidate).