What is Technical Debt?
Tags: 100daysofcode, codenewbie, startup, techdebt
Published: 2020-11-28 00:06:28

## What is Technical Debt?

I would like to simply define Technical debt as the actions taken by the engineering team to expedite delivery for a piece of functionality that often needs to be refactored at a later point in time. However, there's no one single definition that exists technically.

The term 'Technical debt' was originally coined by software developer, 'Ward Cunningham'. He had coined this term to explain to Non-Technical stakeholders why budgeting needs to be allocated for refactoring.


![cytonn-photography-n95VMLxqM2I-unsplash.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1606521297991/DDb2mzWe5.jpeg)

Cunningham's explanation to the stakeholders was along the following lines:

"With borrowed money, you can do something sooner than you might otherwise, but then until you pay back that money you’ll be paying interest. I thought borrowing money was a good idea, I thought that rushing software out the door to get some experience with it was a good idea, but that of course, you would eventually go back and as you learned things about that software you would repay that loan by refactoring the program to reflect your experience as you acquired it."

## Why Technical Debt is necessary?

Typically an early-stage startup needs to validate their product idea first and ensure they can sign up customers rather than build out all the nuts n bolts of the feature. In order to do that, agility is of paramount importance. The engineering team deliberately incurs tech debt to reduce the time to market.


![micheile-henderson-SoT4-mZhyhE-unsplash.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1606521308884/uWbqm--8b.jpeg)

However, often companies have known to abuse this term and prescribe, “Hack it, for now, fix it later” mantra to ship the project fast and acquire more users than their competition. But, often they don't realize that having technical debt has its consequences. Before we dive into that, let us find out the various types of technical debt that exists and how to address them.

## Types of Technical Debt

While you can categorize technical debt into more granular level such as code debt, design debt, infrastructure debt, testing debt, etc. I would broadly want to classify them into the following categories:

### Planned Technical Debt

As explained above, it is a decision made by the engineering team to take a short-cut for shipping the feature faster.

#### How to address them?

The tech leads/managers must ensure to track the tech debt in the backlog and address them as the product grows. The Product & Sales team must be made aware of the consequences of not addressing them in a timely manner and everyone should be held accountable to ensure that the tech debt is addressed in a timely manner.

### Unintentional Technical Debt

This occurs generally due to the lack of understanding of the product or poor communication that exists in the translation of business goals or simply poor engineering practices.

#### How to address them?

Retrospectives are necessary no matter how fast a project needs to build. It is imperative to reflect back to find out what went well & what needs to change. Tech leads/managers must involve themselves in understanding the true business objectives and the product team must keep validating the software being built and provide feedback incrementally.

### Unavoidable Technical Debt

When there's a huge change in project scope or a complete pivot of technology choice during mid-project, it leads to unavoidable technical debt. 

#### How to address them?

Typically, this is the hardest of them all and usually, the debt is paid back in phases. For e.g. mid-project, the engineering team decides to move from React to Vue. The way to do this would be to create new features for the project in Vue and migrate the existing features from React to Vue in phases.

## Is Technical Debt bad?


![ayo-ogunseinde-sibVwORYqs0-unsplash.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1606521458922/V1MhB3s-1.jpeg)

It's yes and no based on which point in software development you view it. For example, at an early stage, having a technical debt is considered a good thing to ship your product faster to the hands of the end-users. However, as the product matures, it is important to pay back the debt to ensure the product is stable and can actually scale as more and more users start adopting the product.

One important thing to acknowledge is that Technical debt unlike Financial debt is much harder to detect and people generally tend to ignore it unless it really becomes a problem. It is important to have the consequences of technical debt explained to all stakeholders and ensure that the responsibility and accountability are shared between the engineering and product teams.

## Conclusion

To summarize, technical debt can be described as the consequences of software development actions that intentionally or unintentionally prioritize client value and/or project constraints such as delivery deadlines, over more technical implementation, and design considerations.

Technical debt should not be confused with the mess. A mess is a just mess that is being created based on laziness and unprofessionalism and has no chance of payback in the future.

I hope you enjoyed the article. Please don't forget to subscribe to my newsletter and connect with me on Twitter [@skaytech](https://twitter.com/skay_tech)

### You may also enjoy the following articles:

### You will also enjoy the following articles:

- [Why you should learn 'React'?](https://dev.to/skaytech/why-you-should-choose-to-learn-react-2g70)
- [The React Ecosystem](https://dev.to/skaytech/the-react-ecosystem-1l05)
- [Async/Await explained in JavaScript](https://dev.to/skaytech/async-functions-chapter-3-async-await-89)
- [What are JavaScript Promises](https://dev.to/skaytech/async-functions-chapter-2-promises-1c6i)
- [JavaScript Callbacks Explained](https://dev.to/skaytech/async-functions-chapter-1-callback-3fkm)
- [Everything you need to know about JavaScript Objects](https://dev.to/skaytech/javascript-objects-31lb)
- [Everything you need to know about JavaScript Funtions](https://dev.to/skaytech/all-about-javascript-functions-1l5f)
- [ES6 - Higher Order Functions](https://dev.to/skaytech/es6-higher-order-functions-495e)
- [ES6 - Spread Operator](https://dev.to/skaytech/es6-spread-operator-3ced)
- [ES6 - Understanding Destructuring](https://dev.to/skaytech/es6-understanding-destructuring-49np)
- [ES6 - Arrow Functions](https://dev.to/skaytech/es6-arrow-functions-2m0l)
- [What is Currying in JavaScript?](https://dev.to/dailydotdev/what-is-currying-in-javascript-3n9l)
- [Understanding Hoisting](https://dev.to/skaytech/understanding-hoisting-b48)
- [Introduction to Big O Notation, Time & Space Complexity](https://dev.to/skaytech/a-gentle-introduction-to-the-big-o-notation-time-space-complexity-3hdd)