We often make decisions based on short-term requirements or close deadlines with the idea to fix them in the long term, without acknowledging the problems we are creating by doing so.

What is Technical Debt?#

A simple definition by Wikipedia:

Technical debt (also known as design debt or code debt) is a concept in software development that reflects the implied cost of additional rework caused by choosing an easy solution now instead of using a better approach that would take longer.

We can think of the technical debt as a group of temporary fixes coming together in a particular project. We’ve all been in a situation where we need to ship a feature as fast as possible but the implementation wouldn’t allow it to be delivered in time. What do we do? We write down a temporary fix and lie say to ourselves: “I’ll come back later and fix this”. Technical debt is not coming back soon enough to eradicate that implementation’s specific issue.

Should I care about it?#

The thing about technical debt is that you’re going to have to deal with it whether you like it or not. The sooner you start working on paying off the debt by refactoring or restructuring your codebase, the sooner you’ll be back to shipping features and products.

Not working on your technical debt can result in a bunch of issues such as:

  • More bugs
  • Bad code readability
  • Low team motivation
  • Product delivered late
  • Product delivered over budget
  • Difficult updates and upgrades on the codebase
  • Dragons will eat your flesh while sleeping

Is my team infected?#

A team can take on technical debt deliberately to meet a deadline. It helps to know which parts of the code are going to take more work to change later.

What is causing technical debt?#

Here are some things that can leave a team with rework.

  • Bad requirements’ definition
  • Delayed code refactoring
  • Specification changes
  • Chain of command technical knowledge
  • Bad communication
  • Changes in scope and deadlines
  • Team’s motivation to learn

The first four causes are pretty self-explanatory, so I’m going to go into the last three issues to give a clearer explanation from my own point of view.

Bad communication#

It’s well-known that working in teams is complicated. We all have different perspectives, styles and preferences working on a project. Communication is a big issue in every organization; not communicating is as bad as overcommunicating.

Finding a communication model that enables the team to share their challenges and the way they solved them is a very important issue. Not communicating can lead a team to repetitive code writing, bad dependencies and module design. Also, overcommunicating can become a problem as it puts the team in a nonproductive state. There should be a balance in communication.

Bad communication is everyone’s responsibility, and should be considered a top priority on every team.

Often, teams use communication channels like Slack, Discord, Cisco Spark, Workplace by Facebook, Fleep, Jostle, Hive and many others to manage communication more efficiently. I’ve used Slack at most of my workplaces, in college and I can only say that it’s an amazing tool. The catch here is to try each one until you find one that fits your team’s specific needs.

Changes in scope and deadlines#

A change in scope can mean reworking a module the team has already shipped. If other features depend on it, talk through what has to change before committing to a new delivery date.

Team’s motivation to learn#

Say you learn a better way to do something four weeks after writing a module. That can be a good reason to refactor if you can point to a change it would make easier.

What are the consequences?#

The consequences of technical debt can be quite awful. They range from exceeding the budget and planned development time to affecting the team’s mood while working on projects.

The team#

It’s frustrating to rewrite something you just shipped, especially if nobody can say what the rewrite will make easier. Talk about the change the team will be able to make afterward.

The client#

If an existing module adds three weeks to the work, explain which part of the delivery depends on it. Give the client a date that accounts for the extra work.

The product#

It is the most damaged one of them all. Although decisions were made that resulted in technical debt, not paying them back in a reasonable time now represents a less agile software development process and a complicated shipping process that relies on more and more temporary hacks just to get things done for the next deadline.

Technical Debt is a direct influence on the update frequency and creates an unstable codebase that can become a huge problem for big features and roadmap schedules.

How to overcome Technical Debt#

So, yes, technical debt is always going to be there with you. The great news is that you don’t have to bother eradicating it (as it is impossible) but rather manage it to your benefit.

Communicate properly#

Communicating efficiently both with the team and with the client is the most important part of this. Being able to catch up on new standards, libraries, models, languages and tools is a truly valuable skill for your team. A realistic roadmap also needs to consider deadlines and refactors that may surely will happen.

TODO, never again#

Assuming the presence of some technical debt from the beginning will change the perspective on a project’s management cycle. There will be situations in which some technical debt is necessary to get a specific bug fixed or get a feature into a specific release, but being aware of its presence lets you plan how to pay it as soon as possible so you can minimize the need for future refactors.

Just assuming it’s there isn’t enough.

Being aware of the specific modules that carry technical debt can save you time, effort and headaches when working through module dependencies.

Conclusion#

When I tell myself “I’ll come back and fix this,” I try to name the module and write down what would make the fix worth doing.