Laws of Software Engineering · Saying
Saying
The Happy Camper Rule
Leave the code better than you found it.
How to use it. Small improvements add up. Make the cleanup part of the change you are already making.
How it gets misused. As an excuse for sneaking in unrelated work. Keep "better" small and obvious. Do not hide a refactor inside a bug fix.
Related