Glossary: Software Design Patterns in Java
Single responsibility principle (SRP)
Also written: SRP, single responsibility
The SOLID rule that a piece of code should have one reason to change. `priceItems` and `applyDiscount` were split from `placeOrder`.