SRP & ISP

ayushmaan_jain
Mausschubser
Mausschubser
Beiträge: 64
Registriert: 18. Okt 2014 11:11

SRP & ISP

Beitrag von ayushmaan_jain »

Hi,

Is there any situation where SRP & ISP go hand in hand ?


Regards,
SJ

okidoki
Neuling
Neuling
Beiträge: 2
Registriert: 24. Mai 2015 14:32

Re: SRP & ISP

Beitrag von okidoki »

isn't a interface that violates the SRP, not already an polluted interface? because some client will need only one kind of operation but must depend on the other?

m.hosseinian
Windoof-User
Windoof-User
Beiträge: 34
Registriert: 3. Mai 2015 21:28

Re: SRP & ISP

Beitrag von m.hosseinian »

The situation is when, the SRP violating class implements its non-coherent methods defined in a polluted interface which serves multiple groups of clients, each group use coherent set of methods of the interface.
Too long yet, I hope it's a clear sentence. :-)

ddimitrov
Erstie
Erstie
Beiträge: 20
Registriert: 17. Jul 2015 16:28

Re: SRP & ISP

Beitrag von ddimitrov »

A class that implements a lot of interfaces violates the SRP, because it has many responsibilities. The same is with the polluted interfaces, which define multiple functions.

Antworten

Zurück zu „Archiv“