It started as a quick fix.
A production issue.
A tight deadline close to release.
A message from Manager: “Can we hot-fix this today?”
So I did what any responsible engineer would do.
// TODO: Temporary fix, will clean up laterI told myself:
“This is just for now. I’ll come back and refactor it.”
The build passed.
The bug disappeared.
Everyone was happy.
And then… time moved on.
#Six Months Later
I was debugging an issue in the same area.
I opened the file.
Scrolled a bit.
And there it was.
That temporary fix.
Still alive.
Still undocumented.
Still fragile.
And the scariest part?
I didn’t touch it.
Not because I didn’t know how.
But because things were working.
#The Real Reason Temporary Fixes Become Permanent
In most codebases, temporary fixes don’t survive because they’re good.
They survive because:
-
Nobody remembers why it was added
-
Nobody knows what will break if it’s removed
-
Nobody wants to be the one who touches a working system
So we leave it.
We add another condition on top.
Another comment saying “don’t touch this”.
And slowly, the system becomes harder to reason about.
#The Question We Rarely Ask Ourselves
The problem is not writing a temporary fix.
The problem is not finishing the job.
Before moving on, we should pause and ask:
Would spending a couple more time polishing this and adding clarity make it easier for the next person?
If the answer is yes — then do it.
Not tomorrow.
Not “when we get time”.
Now.
Because the next person might be:
-
Your teammate
-
Someone on-call at Midnight
-
Or future you
#What “One More Hour” Can Change
That extra time can mean:
-
Adding context to why a workaround exists
-
Writing a small comment explaining the reason
-
Creating a follow-up jira ticket and linking it
-
Adding a test so the behaviour is safe to refactor later
Small things.
Massive long-term impact.
Permanent Confusion Is Optional
Fast fixes are part of engineering.
But Unfinished fixes slowly make the code harder to change.
Good engineers don’t just make systems work.
They make systems understandable.
So next time you write:
// temporary fixAsk yourself:
Can I afford one more hour or 30 minutes to make this less scary?
If yes — do it.
Your future codebase will thank you.
Write code like the next person maintaining it is you — just tired.
Credit to one of my colleague for constantly reminding me that clarity today saves pain tomorrow.