User:Jeroen De Dauw/Single Responsibility Principle/094

From semantic-mediawiki.org

The single responsibility principle

The story of EntityId

Step 3: EntityId::newFromText()

  • Again a less bad place to put the logic
  • Still static
  • Still pulling in global state
  • Still violating SRP - value object + parsing service