To avoid having code that’s no longer appropriate later you should write code that is generic.
7 Ways To Avoid Technical Debt
Ian McKellar
2313
When parts of your problem domain changes and that code is no longer appropriate that isn’t debt anymore. Technical debt may have existed in that code but since it’s no longer appropriate it’s more like debt that has been written off.