Is it ok to have technical debt?
Join the DZone community and get the full member experience.Join For Free
technical debt and design debt are synonymous, neologistic metaphors referring to the eventual consequences of slapdash software architecture and hasty software development. code debt refers to technical debt within a codebase.
[from wikipedia ]
if you’re doing something that you know that will return to bite you in the ass someday than you’re probably in the “technical debt” department. it can be anything it might mean that no unit tests were written for a feature or that no upfront design was made before coding – depending on the team and project. in fact technical debt is all around us - from missing stages in the ci ( continuous integration ) process to quick and dirty coding and missing features.
avoiding technical debt is close to impossible - unless you are a true craftsman, have a patient and understanding boss (and no deadlines) you might be creating debt as you go along.
but it’s not all bad – because unlike actual debt you might not have to pay interest - some of the time it might actually go away, requirements change or additional code is written and from time to time problem just go away. you might find out that something that was nearly impossible yesterday become easy today just because you’ve learned something new.
i’ve learnt to treat technical debt just like any other known risk - it should be treated and managed - ask yourself what the worse that could happen – will i pay more on a less favorable time (e.c. deadline) and how much time would it take - and decide if it’s worth not doing it right now.
having said that – there is a catch, it’s way too easy to use technical debt as an excuse. from time to time i get to hear a fellow developer say something such as: “i won’t be doing x because it would take too long and we’re already behind schedule”. the problem with that statement is that i usually have the feeling that he did not think about the consequences of not doing what might be done – because sometime it’s easier not think about tomorrow. the solution is simple – just ask him: “what would happen if you don’t do it” – and then listen – because he might convince you that creating debt at this place and time is ok.
from time to time you might even convince him that he should do what he’s avoiding right now – and by doing so you’ll make your team better.
Opinions expressed by DZone contributors are their own.