Tsohon tsarin aiki ba komshi ba ne ba daidai ba, amma sau da yawa suna da daraja, suna tafiya da kasuwantsi. Shawarar sake daidaita, maye gida, ko ja tsawar dole ne ta kasance sannan ta raya da kudi da daraja, ba ta kin tsoho code ba. "Tsoho ne kuma muni" ba dalili bane; "yana tsanin mu" shi ne.
Me ya dace da shi
REFACTOR (improve in place) when:
- Core logic is sound; it's holding business value
- Problems are localized; you can improve incrementally
REPLACE (rewrite/migrate) when:
- It blocks important work and can't be incrementally fixed
- Maintenance cost > rebuild cost over a sensible horizon
- It's a growing security or reliability liability
RETIRE (remove entirely) when:
- Its value no longer justifies any maintenance cost
- Usage has dwindled; a simpler path exists
