Skip to content

Glossary: Software Design Patterns

SRP

Also written: single responsibility principle, single responsibility

The SOLID principle that a piece of code should have one reason to change. `price_items` changes only if line pricing changes.

Where the book teaches it

Related terms

SOLIDCohesionGod object