Commit to One Opportunistic Refactor
Create a specific implementation intention for one small opportunistic refactor.
Make one bounded opportunistic refactor in code you are already changing. A bug fix, small feature, or review comment where one local structure move would reduce current change risk. In my next PR touching [module/function], I will make exactly one behavior-preserving refactor: [rename/extract/delete/move]. It supports the change because [current cost]. I will verify it with [test/check] before changing behavior. In 2 days, check whether the refactor happened, whether it stayed bounded, and which test proved behavior stayed unchanged. A bug fix in a long function where extracting one calculation would make the fix reviewable. A PR that repeats the same…
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in