Tutorials / SOLID

THE SOLID HARBOUR · CHAPTER 1 OF 5

Single responsibility S

Keep together the things that change for the same reason; separate things that change for different reasons.

BEFORE YOU START

Tools you’ll need

The story, simulation and quiz run on this page. The C# snippets illustrate a design; they are not complete programs.

Required
  • Web browserYou are already using it. No installation for reading or in-page activities.
Optional
Not sure which app is which? Explore the Tools Wiki ↗

Enjoy this complete first story without signing in. A free account opens the other four principles when you’re ready.

SOLID is a set of design guidelines, not a scorecard. The aim is software that stays understandable as real requirements change.