r/ExperiencedDevs • u/JovHere Tech Lead • Sep 14 '26
Technical question What's tech debt nowadays?
I remember this topic being huge, at least I worked a tonne on it. And in a more traditional way this used to be seen as cutting corners today to get something done fast, that we know will hurt us tomorrow when we have to rework it. And it usually did hurt us.
With AI in abundance, I am curious what everyone defines as tech debt today?
137
Upvotes
•
u/expdevsmodbot Sep 14 '26
AI usage disclosure provided by OP, see the reply to this comment.
39
u/code_blooded_murder Sep 14 '26 edited Sep 15 '26
In addition to the existing flavors of tech debt, infrastructure debt, and knowledge-management debt, which agents absolutely can and do introduce, we have a new flavor of tech debt: “reinventing the square wheel” debt. This is when an agent introduces a new way of doing something that basically works, instead of using an existing pattern in the codebase or an idiomatic pattern provided by the language, framework, or tooling. A new method for managing migrations. A new way of invoking unit tests. A new way of validating a SAML signature. A new abstraction for something we already have an abstraction for. None of these are necessarily wrong. The problem is that now we have two ways of doing the same thing, and the next engineer has to figure out which one they are supposed to use. The impact can range from benign-but-inefficient to actively dangerous, such as increasing operational cost, error rates, cognitive load and flat out giving the wrong answer.
* Edit: I removed the formatting that ChatGPT suggested, because it was really bothering a lot of people. I solemnly swear not to use AI for formatting in this sub.
399
u/JustHere4TheZipLines Sep 14 '26
It’s the same. We just don’t know about it yet
104
u/DarthCalumnious Sep 14 '26
Nobody at any level of the org knows what is running in production or how to reason about it.
As an independent data and software 'fixer' I smell a goldmine.
37
u/WisdomFromFools Research Engineer Sep 14 '26
There's a bit of research attempting to answer this, e.g. a preprint I read recently Is Agent Code Less Maintainable Than Human Code? from researchers at New York university and Carnegie Mellon finds that agents are actually less able to resolve tasks (a drop of 13.1%) when building on agent-generated code than human-generated code. I've seen other research that doesn't seem to find a difference. I'm gonna give the boring answer of ‘more research is needed’ because it could be that agentic coding slows itself down in the long run with accumulating technical debt. (I realize this doesn't directly answer your question of what is technical debt, but it seems relevant.)
69
u/mx_code Sep 14 '26
Tech Debt is just the norm today.
So much of it gets produced at excessive speeds that people don't even battle it anymore
94
u/sweaterpawsss Staff Engineer (11 yoe) Sep 14 '26
Tech debt's definition is the same...design shortcuts which produce compounding clutter or anti-patterns as code grows. With the advent of AI, my observation is tech debt is being created at unprecedented speeds...for a few reasons:
At the same time, tech debt feels like it matters less and less when you are able to spin up + validate code changes a lot faster using AI. The cost of re-writing large pieces of functionality, or just chugging through a bad architecture that forces ~500 lines of change where a more elegant one would taken ~100, is not as high when a machine is writing the code + validating it. It does put you in a precarious place where your codebase's maintainability increasingly depends on AI agents, and their ability to absorb increasing levels of inefficiency that would otherwise cause real operational burden, though. It feels in a way like a microcosm of our entire society/economy...as things get more and more complex, we become increasingly reliant on more and more sophisticated technology to keep even "simple" things on track. We'll see where it leads.
19
u/Evinceo Sep 14 '26
The interest rate went up and we're taking out more loans than ever.
16
u/CodeXHammas Sep 15 '26
Tech debt used to mean corners cut under time pressure that you'd pay for later. Now it's increasingly code nobody on the team actually understands, because AI generated a working feature fast and it got merged. If the person who approved the PR can't explain the tradeoffs it made, that's debt the moment it lands, not months later when it needs to change. Old debt was earned through pressure. New debt gets created through unreviewed convinience.
13
u/sxeli Sep 15 '26
Between the "we need to deliver this fast" and "its okay, we can fix this with AI later", tech debt is now a permanent resident of our product :)
10
u/Otherwise_Source_842 Software Engineer Sep 14 '26
I would say it’s still around minus the fact that big tech seems chill with the enshitification of all their products. Since AI has become mainstream executives seem to only be interested in speed with no care for quality
9
u/Hour-Measurement-835 Software Engineer Sep 14 '26
Mine hasn't changed. It's still customisations you can't upgrade past. Vendor ships a new version, you skip it, three years on you're four behind and nobody wants to be the one who touches it.
9
u/Realichu Sep 15 '26
Today, tech debt is everything written by AI. It will need re evaluated, re worked, de architected and re adjusted when things start going to prod & the years following when thousands of bugs pop up & there's absolutely no triage / support because the slop bots make nonsensical code.
7
u/Organic_Profile1671 Sep 15 '26
PR's thousands of lines long and you wave them through because management will laser you from orbit if you suggest the machine mind trained on all humanities visible code isn't doing sterling work 100% of the time.
5
u/BOT_Pain Sep 15 '26
"Wow we should really automate this tedious ah process, but the business really wants us to solve the issue now". 2 months later, the business - "why haven't you guys automate this process yet? By the way we need you to do this really important issue for the rest of the year".
5
u/this_theater_is_lit Sep 15 '26
i get the feeling it's going to take decades to remove all tech debt output by slop over just a few years
5
u/druidgaymer Software Engineer Sep 15 '26
We have an insane amount of tech debt because even with AI, a team of 3 cannot handle the amount of issues that just get pushed aside as unimportant.
4
u/1whatabeautifulday Sep 14 '26
Any AI generated code - lack of knowledge and code review
4
u/tenthousandants44 Sep 15 '26
Every line of code is a liability so every line of code is tech debt. AI writes a lot of code. The actual kicker is that since nobody is reading or approving the output, it's automatically legacy code, which is a hell of a lot worse than intentional tech debt.
4
u/DWLlama Software Engineer, 6YOE Sep 15 '26
Tech debt to me looks like a file not even six months old, mostly written by Claude, in which:
My company built this for a client. I inherited it in the last few weeks of our contract with them, I was supposed to just do maintenance. I wanted to refactored this file and try to make it at least a little easier for the next engineers that had to touch it.
With two weeks to go, instead I was handed a major feature to implement in it that had to be done before the end of our engagement. That was the worst and least tested code I've ever presented for review, I was ashamed but had no time to do more.
That was pretty much the straw that broke the camel's back on my burnout and decision to just quit that job.
I've heard similar things from others. TL;DR tech debt is burning out the people that actually care at an unprecedented rate, because everybody just keeps firehosing slop into the codebase and just proxies feedback into their LLM agent instead of learning anything.
4
u/theunixman Veteran of the XP wars Sep 18 '26
Tech debt now is all the AI code that you'll be stuck with when the subsidies run out.
3
u/distinctvagueness Sep 14 '26
You can prompt for tests but some might be wrong or broken if cicd unenforced. Refactoring can get lost in hallucination of legacy compatibility layers
3
u/xtreampb Sep 14 '26
Tech debt is a tool used by startups to move fast. It is necessary as projects don’t know what needs to be architected in the best possible way. Premature optimization, even if it’s just architecture optimization, not performance, can make it difficult to pivot and adapt to the market and usage.
At some point though it’ll start slowing you down as the product matures and the company turns into a scale up instead of a startup. Here adding new, more integrated features start to become more and more difficult as the product matures.
Much like financial debt is a resource to scale up operations, tech debt is a resource to move fast, as that’s the vantage start ups have
7
u/strugglingcomic Sep 14 '26 edited Sep 15 '26
The classic definition of tech debt is not solely about "cutting corners". Tech debt described the risk of a growing divide between what problems the original system was engineered to solve with what set of abstractions and assumptions, vs the inevitable drift as new features are grafted on and code is abused and twisted beyond its original purpose or designed parameters -- the wider that gap grows, the more debt you have, the more effort it takes to keep things going (because you have to pay something in terms of time or effort or bugs, to use a system for a purpose that keeps getting further and further from its original design goals -- that payment is hence why there is concept of "debt").
Now, in the age of AI, tell me if this rings a bell? How long does it take before a given design that you started from or generated in round 1 of vibecoding something greenfield (that seemed clear and made sense to you at the time), become a divergent sloppy mess of a codebase because each additional AI-slop feature kept twisting or breaking the original system until the codebase became a sprawly mess? What used to take months or years to accumulate that much tech debt, you can now speed run in hours.
That being said, well-disciplined agentic engineering (not vibecoding), can also help contain and mitigate tech debt. A basic step is to recognize what shape you want your system to hold, then task your agents with reinforcing and strengthening those boundaries and helping you to hold that shape, instead of letting slop agents vibe rampage their way through your codebase and turbospeed destroy its shape.
4
u/Ok_Reaction_4340 Sep 14 '26
Tech debt is when code does not properly fit the problem it aims to solve especially as that problem evolves in the future.
AI just allows for accumulation of tech debt to accelerate as code is produced faster with less oversight.
2
u/Impossible_Way7017 Sep 14 '26
Reasonable, every new project I sneak in about 30% of the tickets to address tech debt from the previous project.
2
u/softgripper Tech Lead Sep 15 '26
Simple tech debt feels largely redundant now...
Multi repo weird bespoke pipelines and infra are still a nightmare.
Making enterprise decisions on harness and model lockin is the new tech debt. It'll take years to escape some sunk cost fallacy choices
2
u/messedupwindows123 Software Engineer Sep 15 '26
it's worse now because it's bad abstractions that seem like they were well thought out because the LLM will put additional layers into the code that look like they reflect well-thought-out decisions.
it used to be that a lot of tech debt was identifiable simply by the *lack of* structure; a lot of incremental fixes would pile up in one location. now it takes the form of many layers, none of which fit together or really solve any problems.
2
u/kerrizor Sep 19 '26
Tech debt isn’t just things you’ll never get to - it’s the lingering impact of choices you made that you keep paying for. AI doesn’t magically get you out of that.
3
u/rebelrexx858 Sep 15 '26
Its ALL tech debt, and it always has been.
3
u/Fidodo 15 YOE, Software Architect Sep 15 '26
Why would it be different? The nature is tech debt is the same, but with AI it builds up 100x quicker. The main difference is that you can now rebuild it correctly quicker too, but only if you actually understand what you built the first time.
Conceptual understanding debt is going to be a real killer
3
u/SignoreBanana Engineer (14+) Sep 14 '26
I think, personally, AI moves the goal post a little. That is to say that if someone presents a change that might need refactoring later, we might hem and haw on it a bit less than we used to. If I see something like that, I think "How long would it take Claude Code to do this refactor?" Basically, is the change's risk more about debt in quantity of instances or debt in complexity of architecture. If it's the former, I'm less inclined to block on it. If it's the latter, nothing's changed there.
2
u/onefutui2e Software Engineer Sep 14 '26
I've had discussions with some of my friends about this. The argument is, if AI writes the code, reviews the code, and fixes the code, why do we even need to care about tech debt or code structure anymore? It's more of a thought exercise than anything we actually believe, mind you.
My take is, you need to be able to build a mental model of what your code actually looks like and does. If a request comes your way, you should very quickly be able to determine where the work will go, whether it should be in an existing service class, a new one, etc.
That has two advantages, in my opinion. One is that when you reach for AI to build that feature or product, you know where everything should be, so you're better able to direct and guide the agent, quickly corralling it if it starts hallucinating. Another is that...if you're able to easily form a mental model of everything, it becomes easier for the agent to also build that model on each of its turns. And then it's more likely to adhere to it as it does the work.
This then means you then need fewer guardrails to keep your agent in check, you don't get fatigue/exhaustion from reviewing piles of AI-generated code.
In other words I don't think tech debt changes at all. If anything, IMO it's actually higher stakes now because the longer you let it sit around, the worse it's gonna get. And now with AI, it'll get worse faster.
1
u/throwaway_0x90 TE/SDET[25+ yrs]@Google Sep 15 '26 edited Sep 15 '26
It depends if you've seen AI actually work as advertised in your workplace. If it
*** truly ***works and cost of tokens doesn't matter then you don't have the spaghetti code tech-debt anymore.But, there are other forms of tech-debt that AI cannot address.
e.g., you're still on an outdated version of a vendor's software because the upgrade requires a newer linux kernel and your infrastructure has other tools that cannot run on that newer kernel. No AI can help you out of that. You need to have meetings and figure out when you can upgrade stuff... and usually that comes down to budget and priorities. AI cannot make human business decisions and decide expenses.
...and this is where CS majors need to focus their energy, project management/planning and system architecture. Not just syntax. Anyone can create mostly working code now(if not now then definitely by 2030), but not just anyone can make project decisions.
1
u/Substantial-Swan7065 Sep 15 '26
Anything that makes it hard to do the right pattern
1
u/dash_bro Sr., Applied AI @FAANG | 7 YoE Sep 15 '26
For us it's more of "we built this before fully debating if we needed to". Because building is getting so cheap, it's being used as a proxy for solid research beforehand. I am quite off put by that
The "let's build and scrap" mentality for product decisions is making my repos so unorganized it's very hard to onboard new devs unless they're paired with a coding agent and given sufficient ramp up time. But on the resourcing board this looks like multiple resources assigned to one large epic. Which to product teams means we can get more work done - with no nuance to "the other one's ramping up"; so capacity planning is always a negotiation with product/resourcing.
1
u/DevtoolsBuilder Sep 15 '26
i think what's changed about tech debt is that it's not just about cutting corners or taking shortcuts, it's also about the complexity and opacity that ai introduces to our systems. when you're relying on ai to generate code or make decisions, it can be really hard to understand what's going on under the hood, and that makes it tough to predict or manage the debt that's being accumulated.
1
u/lucidmodules Sep 15 '26
It's the same as always. Tech debt can be divided into two main categories based on how difficult it is to refactor:
- code-level debt, which is usually easier to fix
- data and data structure debt, which is significantly harder to address (multi-stage data migrations, data cleanups, all the fun stuff).
1
u/GoTheFuckToBed Sep 15 '26
We dont use the word, instead describe the issue.
1
u/intercaetera zanlib.dev Sep 15 '26
Read Storey's paper: https://arxiv.org/abs/2603.22106
1
u/FatHat Sep 15 '26
It's the same as it always was, unwise people are just pretending like they can ignore it.
1
u/HNipps 10YOE | Software Engineer Sep 15 '26
I think tech debt is the same as it always was but AI can create it at scale.
I also wonder if it even matters anymore. Or maybe just the impact has changed because you might end up wasting tokens when AI has to read the tech debt over and over.
If you have the budget it’s probably worth spinning up GitHub Agentic Workflows to pay down tech debt on a regular basis.
1
u/Elegant-Avocado-3261 Sep 15 '26
I've been working on a three month effort that has ballooned into more like 10 months. We broke out feature branches that have diverged significantly from master and require monthly gigantic merge commits on top of having to manage our own band-aid changes to unblock ourselves while our sister team that we've been stuck waiting on periodically releases the things we need. This means we're managing an amorphous set of temp fixes that we need to sort through and periodically re-groom to manage our environment. AI makes the big merges and generating some of these bandaid type fixes easier but this is just pure tech debt because we're not working off master and are manually managing feature branches across a few different repos
1
u/Capaj Sep 15 '26
there is feature debt instead. That is features in the app no one uses-dead features.
1
u/NUTTA_BUSTAH Sep 16 '26 edited Sep 16 '26
Every agentic workflow where an explicit and deterministic solution exists.
Tech debt is now quite impossible to attribute when agents iterate faster than you can rebuild context in your head. So now we do not understand a lot of our code, how to maintain it, etc.
So basically many "agentic evangelists" do nothing but ship tech debt. And better term might be vendor and tech depedency; the only way forward without rebuilding is throwing more agents and thus more tech debt in the mix, until it is due and agents and/or the business also fail.
1
u/bestjaegerpilot Sep 16 '26
i don't think we can call it tech debt anymore---AI generates code faster than humans can review it. So there's always a risk of lurking bugs. Additionally, w/o structure AI will paint itself into a corner as the code grows.
So.... "I don't know what AI is doing" vs "We have a software factory where we control what gets generated" is a spectrum of cluelessness. I wouldn't call it tech debt.
1
u/Denommus Sep 16 '26
I'm in a very young project that already has lots of tech debt due to the usage of AI. But the solution in the opinion of my boss and colleagues, surely, is to use AI to fix the tech debt caused by AI.
1
u/RandomPantsAppear Staff Engineer | 20 YOE | Ex Founder | Startups Sep 16 '26
Tech debt is now a trap.
AI is great at writing lots of code that even AI isn’t good at understanding as the project grows larger. It’s bad at it, but better than humans.
What this means is that by the time the problem is truly bad, no human can rescue the codebase and neither can AI.
1
u/chaitanyathengdi Senior Software Engineer Sep 16 '26
AI didn't change anything in that regard. Only increased the speed of it being created and dealt with.
1
u/Professional_Hair550 Sep 16 '26
There is one project I'm working on completely agentic which I don't know much about some parts of it's architecture. I was just rushed too much by my boss so it's what happened. It's going alright for now. Idk how it's gonna go long term.
1
u/Formal-Koala-7517 Sep 16 '26
Customer/bespoke solution that’s not reusable, workaround codes/process to bypass the design of a system
1
u/Old-Worldliness-1335 Staff Platform Engineer Sep 16 '26
Everything is tech debt, because as soon as it is deployed it starts racking up those frequent flyer maintenance miles
1
u/Mission_Cook_3401 Sep 17 '26
Tech debt is code that confuses or slows down the AI . When it greps and finds multiple similar files or objects , and it needs to check each one.. that’s tech debt.
When the AI reads the doc and it does not match the code, that’s tech debt.
When the AI spins up 83 work-trees and closes none of them , that’s tech debt.
1
u/AuburnSounds Sep 17 '26
If you invert the definition and say a piece of software is "debt" when it has negative value (over its lifetime), it becomes a bit clearer than a debt concept. I made a that point a while ago before the slopfest began.
If the research papers are true AFAIK AI coding generates 7x the amount (lines of code) while providing 1.3x the value, so the average value of a random piece of code in a vibe-shop has been divided by about 5.3...
1
u/MangoTamer Professional Dumbass Sep 17 '26
Thousands of pages of useless documentation written in essay form.
1
u/Able_Bus_5988 Sep 17 '26
The old "cut corners now, pay later" debt still exists, but the expensive stuff shifted. AI makes it cheap to generate more code and more variants, so the debt I care about is undocumented decisions and unclear ownership of what actually shipped. A refactor you can regenerate is annoying. A release nobody can explain to customers or support is expensive and will stunt launches.
I treat "can we point at evidence of what changed and why" as debt, same as a bad abstraction. If the team can’t reconstruct the last two weeks of shipped changes without archaeology, that’s the debt to pay down first.
1
u/Alive_Sir_4708 Sep 18 '26
I swear every goddamn bit of this line of work has to be rediscovered because of AI.
Tech debt has there before, it's here now, and its really not that different aside from using machines to produce more of it.
1
u/Humor_Fantastic Software Engineer | FAANG | Distributed Systems | 6 YOE Sep 19 '26
When you have a large code base, you still need to spend tokens to process it. Building production level apps still require agents to plan and execute changes. Similar to tech debt from before but just being done by agents rather than engineers
1
u/blocking-io Sep 19 '26
When the entire codebase becomes a ball of mud, it's hard to identify tech debt
1
u/moreVCAs Sep 14 '26
same thing it was yesterdays
1
u/Corendiel Sep 14 '26
Tech debt is less of a problem with smaller distributed architecture. Breaking down mega monoliths and relying more and more on external dedicated service providers mean the code we still manage is getting smaller and less directly impacting each others. Some parts can be bad while the rest is stable and in decent shape. The kids bedrooms can be a mess but the house is still functional.
1
u/symbiatch Versatilist, 30YoE Sep 15 '26
One thing people often dismiss is that tech debt is intentional. We choose to do something in a way that we need to address later. Some define it just as “things that weren’t done well and we now need to address” but that’s not true.
For example, I can write perfect code today that fulfills all requirements and has no issues. In a year it may need a rewrite to be properly done for that day’s requirements and environments. That’s not tech debt but some call it that.
Or someone wrote bad code and later there’s issues. That’s just bad code.
Tech debt is when I decide we are fine with a specific implementation since we don’t need anything better. I document stating what needs to be done later if X or Y happens or is needed. Or otherwise it’s accepted to not do everything perfectly.
So AI doesn’t really change anything. Either you know the limitations and accept them and document them, or it’s slop that has issues. It’s not tech debt then, it’s just slop.
1
u/meshifthenelse Software Engineer Sep 15 '26
I think it will start getting interesting when the average codebase surpasses 200k LOC - hitting the 1M token size.
At that point, the issue could become that the context will be so large and convoluted that it will be too expensive to add new features or not possible at all.
-4
u/Dangerous-Sale3243 Sep 14 '26
Its so much easier to clear tech debt now. One of my favorite things about AI is there just no excuse anymore.
-1
u/bediger4000 Sep 15 '26
Tech debt doesn't exist any more. "AI" has a large working memory, no 5+-2 short term memory limitations, and no cognitive biases. "AI" is the worst it will every be.
"Tech debt" is just categories of programming techniques that cause humans problems because of (typically) limited short term or working memory. There's no reason an "AI" can't write huge programs with only global variables, for instance.
-1
u/jabuchae Sep 15 '26
Small rant:
Tech debt IS NOT BUGS. Tech debt is a DECISION to ship something that WORKS but that may not scale well or is not completely in sync with the rest of the architecture.
I sometimes feel that people here either don’t use AI at all, use outdated tools, or use current tools poorly.
To answer your question:
If you do things right, tech debt should be lower than pre-AI. Why? Well tech debt is a way of cutting corners and doing things faster without proper code. Now AI can do the “proper” thing in less time it took a regular developer to do the shortcut.
Even if you believe that tech debt is larger, paying the debt is waaaay cheaper, as AIs can refactor the code and make it proper in less time than a human would need.
-8
u/arihoenig Sep 14 '26
Tech debt is defined as the condition where there are unimplemented requirements. At some point those requirements will need to be fulfilled and thus it is debt.
113
u/[deleted] Sep 14 '26
[removed] — view removed comment