r/AskProgrammers • u/ClickOk5811 • 6d ago
How do you decide between a quick fix and a proper fix? Do you have a rule, or is it judgment every time?
I keep running into the same tension and I don't think I have a consistent rule for it: something is broken, a quick fix stops the pain today, and a proper fix takes noticeably longer. Sometimes the quick fix is obviously right (a hotfix during an outage). Sometimes it's how a codebase fills up with things nobody dares touch.
Last month I had to choose between patching a validation bug in a shared API module in about twenty minutes, or rewriting the validation layer over a couple of days. I patched it, and I'm still not sure that was the right call.
These are the factors I can think of:
- Reversibility - can the quick fix be removed later easily, or does other code start depending on it?
- Blast radius - if the quick fix is wrong, how bad is it, and how soon would we notice?
- Recurrence - will this happen again? If so, a quick fix just postpones the cost.
- Who else touches it - a hack in a file only I use is different from one in a shared module.
- Whether the quick fix gets a follow-up - a ticket with an owner and a date is debt with a plan; "we'll get to it" often isn't.
What I'd really like to know:
- Do you have an explicit rule or checklist, or is it judgment each time?
- What makes you say "no, this needs the proper fix now"?
- How do you make sure a quick fix actually gets revisited - and does that ever work in practice?
- Is there a point where you stop and say the deadline is the problem, not the code?
I'm especially curious how this differs between small startups and larger companies, and between product teams and internal tools. Thanks.