Once you realize that you’ve put yourself in a deep hole, please please please stop digging.
In the past few years I’ve been involved or drug into countless discussions about teams that have incurred technical debt. And I must admit to initiating more than a few of these discussion myself. The funny thing is that the theme of these discussion is almost always the same: “How do we get the business and upper management to understand that this system really will implode if we don’t start prioritizing some of this debt.”
I cannot, right now, recall a single time when the conversation’s theme was: “How do we stop digging?” I admit, that must have occurred … at least once … but I cannot recall it right now.
Yes, there are real business decisions that cause us to incur technical debt. Technical debt often results from a prioritization ethos that focuses on low-estimate patches and sidelines large or even mid-sized features. It can also result from a focus on revenue generation that entirely ignores cost savings. For example, imposing routine manual activities that may be better handled by simple ad-hoc reporting systems or crud maintenance screens.
This said, I’ve never seen a technical debt backlog that did not also include–or was even overweight with:
- Gaping holes in test coverage,
- Swaths of documentation-free code,
- Opaque data structures, and
- Duplicate methods and unnecessarily complex design.
All these issues (and more) result from team-level decisions, not business prioritization. Two months into a project these decisions cannot be undone without business consent. Moving forward, however, the team can stop making these decisions. Instead of decrying the existing technical debt, the team can first focus on disciplined processes that will reduce (if not stop) the team’s decent into further technical debt.
Clarifying and enforcing the team’s definition of done is the best way I know to quickly reduce the team’s creation of technical debt. Specifically, the team needs to come to an agreement about the documentation, testing, refactoring, and other activities that must be complete before a task, user story or feature can be declared done. The team and its individual members must also be mindful to account for these activities during estimation, thus ensuring that there is time to do things right the first time.
Simply put, the team needs to start to tackle technical debt by first enforcing internal discipline and best practices. Once these are established, the team may be surprised to find itself on much more favorable ground when it comes to tackling business-generated technical debt.