User:Jeroen De Dauw/Single Responsibility Principle/08

From semantic-mediawiki.org
Jump to: navigation, search
Jeroen De DauwJeroen De Dauw/Single Responsibility PrincipleUser:Jeroen De Dauw/Single Responsibility Principle/08

The single responsibility principle

Service objects

  • Often less easy to understand, particularly internals
  • Tend to be hard to construct
  • Often mocked
  • Injected as dependencies
  • Often implement (an) interface(s)