Build and check a responsibility argument

A team is reviewing whether an order-processing class mixes responsibilities. Arrange these activities in dependency order. Each activity must have the evidence or proposal it uses before it begins. The review concerns responsibility boundaries rather than the mechanics of rewriting code.

  1. 1.

    Create a catalogue of independently requested behaviour changes and identify the owner of each governing policy.

  2. 2.

    Replay the catalogued changes against the proposed obligations and check whether any still require edits to unrelated policy decisions.

  3. 3.

    Use the catalogue to map each requested change to the decisions implemented in the current class.

  4. 4.

    Use the decision map to propose focused obligations, separating independently changeable policies while keeping cohesive decisions together.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Single Responsibility Questions: