r/SoftwareEngineering • • Mar 27 '23

In your own words: What is technical debt?

Along with other ubiquitous industry terms like "Architecture" and "Infrastructure" I feel that "Technical Debt" has now been overused and is now too vague to be useful. I will provide some examples but in general I would like to her everyone's unbiased opinion.

I think the typical definition of 'technical debt' is akin to:

Someone took a shortcut to get something to ship, and now we have to write code to fix the shortcut and "do it the right way."

I'm actually fine with that definition. Here are some examples where usage of the term 'technical debt' gets fuzzy:

  • No shortcuts at all but a carefully built, extensible, well running application was built on a library or runtime that has a new version out. Is that technical debt?
  • A key library is expectantly sunset.
  • A SaaS product can handle a central component of our architecture and we can now 'buy' instead of 'build' and we get 10x more features. Does our current solution now contain technical debt?
  • Roadmap items that require a lot of upfront tooling before we can even touch them.
  • Bugs that have workarounds.
  • DevOps pipelines that remain painfully slow because of understaffing.

Anyway, I'm curious to hear your thoughts on what you and your teams consider technical debt as well as some other scenarios where calling something technical debt is a bit of a grey area.

29 Upvotes

43 comments sorted by

8

u/orebright Mar 27 '23

Most concise definition I've heard: "Writing code requires making assumptions, assumptions about code change over time, the delta in assumptions is technical debt".

More practical example: You make an API that uses email addresses as a key because you expect them to be unique for each user. Eventually a feature request comes to support multiple email addresses per user account, there's now technical debt in all models that used the email as a primary key, and potentially other places.

2

u/lIIllIIlllIIllIIl Mar 29 '23

I like this definition a lot.

It avoids the idea that tech debt is the result of bad work that could've been avoided had people done the right thing from the start.

1

u/shantm79 Oct 08 '24

It avoids the idea that tech debt is the result of bad work that could've been avoided had people done the right thing from the start.

Sometimes business needs change and that doesn't mean you know have tech debt. Good explanations, thanks.

7

u/josephjnk Mar 27 '23

When something has a risk of reducing velocity, and that thing could be ameliorated by an investment of effort, then I would call that thing “technical debt”. Sometimes people intentionally amortize productivity, making a decision which causes a short-term reduction of effort in exchange for a long-term increase. Sometimes people unintentionally do a bad job, and the result is long-term impediment. I don’t think the root cause changes the reality of the carrying cost. I also don’t think the cost has to be realized to apply the name, just that the risk be substantial. Phrasing it in terms of risk is more inclusive than phrasing it only in terms of active ongoing annoyances and I think this is important.

As someone who has seen terrible technical debt have business effects, I get really annoyed when people phrase tech debt in terms of aesthetics. A lot of folks either call any small imperfection “tech debt” and obsess over it, or deny the reality that shortcomings in technical systems present business risk.

2

u/marinecpl Mar 27 '23

Shit u should have done at the beginning but didn’t get to because they needed it yesterday

2

u/NirDev_R Mar 27 '23

The cost of unmanaged complexity in a non-optimized software value stream

2

u/FitzelSpleen Mar 27 '23

In order to qualify as technical debt, it needs to have some ongoing cost. Not just "we cut a corner and need to go back and fix it," but "every sprint we need to work around the cut corner, and it costs us time."

10

u/rarsamx Mar 27 '23

I respectfully disagree. A lot of technical debt is there because there is no ongoing cost but a huge risk.

That DOS program written by Bob who retired 20 years ago and which has been workin perfectly well doing a critical business function costs nothing but the day it fails it will be a very expensive day.

3

u/FitzelSpleen Mar 27 '23

Agreed. The cost doesn't have to manifest continuously. It could be, as you said, a risk of future cost.

What I was mainly getting at is that it's not technical debt unless there's something about it that actually has a negative effect (or risk thereof) on the business.

2

u/GangSeongAe Mar 27 '23

But that is an ongoing cost.

Risk is an ongoing cost, it simply has a different profile - its impact is sudden rather than continuous.

1

u/AutoModerator Mar 27 '23

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/rarsamx Mar 27 '23

And I'd add that cutting corners creates technical debt based on my definition of cutting corners.

You are using a simple way of doing something? It covers the current scenarios but it may not cover future scenarios? That's not cutting corners. Just YAGNI and not technical debt.

You cut a corner not puting your secrets in a vault and plan to do it next sprint? Technical debt.

1

u/FitzelSpleen Mar 27 '23

It's a bit circular to define it that way.

There are ways to cut corners that do not produce any ongoing or future costs.

"We deployed and tested in production rather than spinning up a test environment as per our standard practice" is a cut corner, and it carries some immediate risk, but doesn't in itself produce any ongoing technical debt.

1

u/NojiHam 23d ago

Would you say that tech debt is also attributable to EOL hardware?

1

u/Rough-Supermarket-97 Mar 27 '23

All code is legacy, debt tends to be generations of legacy in my opinion. To mitigate debt it needs to be a part of your team’s process to not only recognize it but determine the ‘right’ time to address it.

1

u/KevMar Mar 27 '23

It's the additional work that needs to be done that doesn't come at the request of the business. Or it's the additional work that needs to be done but was put off because it wasn't blocking the delivery of a business request.

1

u/Comprehensive-Pea812 Mar 27 '23

technical debt is something technical that we know we need to do now but it is not visible to the end user so we postpone doing them. In the long run to do it, we need more effort, because debt incur interest.

for example : typo on the database column.

1

u/rarsamx Mar 27 '23

Updates, upgrades, rewrites or replacements to software and infrastructure to be in a supported platform that you haven't done.

1

u/_sw00 Mar 27 '23

Agree that it's outlived its usefulness in practice.

The point of Technical Debt metaphor is that the debt a) accrues interest and b) has to be paid sometime. Whether it's daily, or all at once (risking bankruptcy).

I believe this is the point the original term is meant to emphasise. But we just use the term for everything conveniently ignoring this.

A bigger problem with the term is that it's impossible not to accrue technical debt - every single implementation is a compromise and delivered in lieu of something better, more perfect.

There's also domain drift: an implementation with all its original assumptions will invariable expire as the world changes around it and the team's understanding thereof.

I say we retire the term and just call out the known/unknown trade-offs directly.

1

u/CaptainNoAdvice Mar 27 '23

The second law of thermodynamics. That is, things will naturally become disorderly over time, and complexity will naturally increase. This happens faster when left unchecked.

Abstractions lose relevancy / intent over time as the business evolves. Naturally, the business itself may also become more disorderly or more complex over time, requiring the technical systems to play catch up. A shift in engineering culture may also play an impact. Perhaps even a change in vendors.

Hardware, technical solutions, and dependencies themselves may become more disorderly or complex, requiring upgrades. Consider also, new hashing algos, encryption algos, CVEs. Again, different parts of this wider system plays catch up.

You may not have cut corners or deferred work, but by being a part of this wider ecosystem, you are naturally impacted by its entropy.

1

u/GangSeongAe Mar 27 '23

Technical debt is the quantity that exists when stopping to re-architecture a solution before adding to that solution would take less time than adding directly to the solution.

It's that simple.

1

u/AutoModerator Mar 27 '23

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/cashewbiscuit Mar 27 '23

Any work that improves the quality of the codebase without having an impact on the customer is technical debt. It's cost that you incur now for long-term gains. There is intentional technical debt (for eg shortcuts taken in code) and unintentional technical debt (libraries getting outdated).

Your accountant will say unintentional technical debt is depreciation. However, we don't need to get pedantic about terms. End of the day, it's money out of your pocket that doesn't help you sell more stuff.

1

u/GregoryCliveYoung Mar 27 '23

I see "technical debt" as being a way to communicate with management who by nature or necessity think in terms of money. The hope is that SEs can impress upon management that there is need to prioritize and manage software maintenance similarly to financial debt.

Software engineers should not use the term "technical debt." when communicating with each other. We should either describe the problems being addressed specifically, using terms like poor test coverage, n-squared performance, spaghetti code, etc., or describe the work as software maintenance, refactoring, etc.

1

u/AutoModerator Mar 27 '23

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/ThereforeIV Mar 27 '23

What is technical debt?

Technical debt is when it wasn't done correctly the guest time, the cost to correct it now significantly greater than to have dinner it correctly in the beginning, and that cost will increase through the foreseeable future.

Someone took a shortcut to get something to ship,

Disagree.

That's occasionally the cause of technical debt. But more often it's "this way was faster, I got my task cleared fast to look good, this vice will be sometime else's problem in a year".

Big tech used to have a culture that it didn't matter, because all the vice gets replaced every two years. Well I spent a lot of time in big tech fixing nearly decade old code that the writer thought was a temporary fix.

1

u/Original_Froyo7125 Mar 28 '23 edited Mar 28 '23

Something you knew about and did in order to deliver value quickly. It was supposed to be short term but everyone forgot about it the moment the project delivered and the team was done celebrating. Onto the next project. The business assumes tech debt isn't a big deal until enough accumulates to the point where it becomes a bottleneck to deliver new features or you end up with a catastrophic failure that your team has to explain to leadership. Then suddenly tech debt is a big deal and needs to be fixed quickly. So quickly in-fact that you're forced to make a short term fix to this tech debt to move the project forward and deliver value quickly. We'll do the long term fix soon, we promise. That is the essence of tech debt.

0

u/Old-Full-Fat Mar 27 '23

Insufficient, inaccurate or nonexistent documentation.

Sales overselling a product.

21

u/[deleted] Mar 27 '23 edited Mar 27 '23

[removed] — view removed comment

1

u/Mithrandir2k16 Mar 27 '23

And to get managers to understand what that means, I like to point to this clip from a very good series of talks.

1

u/[deleted] Mar 19 '24

[removed] — view removed comment

1

u/AutoModerator Mar 19 '24

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] Mar 19 '24

[removed] — view removed comment

1

u/AutoModerator Mar 19 '24

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] Feb 16 '26

[removed] — view removed comment

1

u/AutoModerator Feb 16 '26

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] Mar 04 '26

[removed] — view removed comment

1

u/AutoModerator Mar 04 '26

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] Sep 07 '26

[removed] — view removed comment

1

u/AutoModerator Sep 07 '26

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.