- Input
- A fictional store has a discount rule copied into three places.
- Assumption
- A new promotion type must be added.
What happens
- The developer finds all three copies.
- They change each one and test each one.
- One copy is missed and a price is wrong.
- They merge the rules into one place.
- Result
- Future promotions are changed in one place.
- Where it stops
- Tidying code adds no visible feature, so plan it alongside feature work.