The Boy Scout Rule
Version 1.0.0 · Updated 2026-07-30
CORE DEFINITION
"Leave the campground cleaner than you found it." In programming, it means that every time you modify code, you should also fix a bit of the surrounding messy code, rather than just doing the current task.
SCAFFOLDING EFFECT
Reduce cognitive load
A micro-habit against entropy. Don't wait for a "big cleanup"; through small optimizations during each action, continuously repay technical debt or management debt, maintaining the long-term health of the system.
Anchor fast decisions
The Boy Scout Rule advocates that every time you leave a piece of code (or system), make it a little cleaner than when you arrived. Through continuous micro-improvements rather than a centralized big cleanup, it curbs system entropy and gradually repays technical debt.
MINIMUM ACTION
In progress 0/1Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- lawsofsoftwareengineering.comhttps://lawsofsoftwareengineering.com/laws/boy-scout-ruleverified
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS