🧠
Daily Dev Motivation — June 29, 2026The Rewrite Temptation
It's Monday. You're debugging
auth_module.py and realize the code was written by someone who believed inheritance was a substitute for thinking. 400-line base class. Subclasses override everything. A
if role == "admin" check in six methods that should've been a policy object in 2019.
You fix it — a three-line change. It works. But then the voice says:
"This really needs a rewrite. Proper abstractions. Tests. Code you'd be proud of."So you create
rewrite-auth. Beautiful DI setup. Strategy pattern. Elegant. Testable. Then it's Friday. The original fix took 12 minutes. Your rewrite touched 23 files, broke three integrations nobody told you about, and you still haven't written the migration script.
The truth: The original code has working tests, existing docs, and a team that knows where the bodies are buried. Your rewrite has none of that. It has elegance and a 70% chance of introducing a production bug on the first deploy.
Stop thinking:
"This code is so bad it needs a rewrite."Start thinking:
"This code ships a product. What's the surgical change that makes it 10% better?"You don't owe the codebase perfection. You owe the users reliability. Fix the bug. Add the test. Ship it.
"A rewrite is not a refactor with better intentions — it's a promise you haven't kept yet."