jeudi 2 mai 2019

Interfaces without dependency injection

Since DO and IOC became well known and used ive seen a trend of an increase of using interfaces for lots of classes even if those classes are not services resolves by D/IOC. Like it would be better to at least have an interface of the class EVEN when the class itself is often referenced instead of the interface. What is the benefit of using interfaces like this if there is no DI/IOC.

Aucun commentaire:

Enregistrer un commentaire