Fitness Function Kata

Fitness Function Kata


Avoid Complex Code

PenultimateWidgets has recently hired many new graduates and interns. During code reviews and pairing, more senior developers notice a tendency towards overly complex code, including long methods and classes. They need fitness function(s) to control this.

  • Categories: atomic, triggered
  • Requirements:
    • validate that methods do not become overly long
    • validate that classes do not carry too much responsibility
    • validate that classes have good cohesion
  • Additional Context:
    • PenultimateWidgets will pay for tools if necessary
    • PenultimateWidgets is willing to slow down velocity to improve code quality