Evolution & Maintenance

Boy Scout Rule

Always leave the code cleaner than you found it.

maintenance refactoring quality

Robert C. Martin (Uncle Bob) adapted the Boy Scout motto for software: every time you touch code, leave it a little better.

In Practice

Small, continuous improvements prevent code rot far more effectively than occasional large-scale refactoring projects.

Enforce this law (and 100+ more) in your AI coding agents with DevLaws.

Open DevLaws All laws →