r/developers • • 6d ago

General Discussion How do you handle technical debt when deadlines keep getting in the way?

[removed]

2 Upvotes

17 comments sorted by

•

u/AutoModerator 6d ago

Howdy u/Sad-Pay-7805, and welcome to r/developers!

A few tips for a post that gets good answers:

  • Use a clear, specific title (what are you actually asking or sharing?).
  • Include code, the exact error, versions, and what you already tried.
  • Heads-up: this sub does not allow external links in posts or comments. Share code and details directly instead of linking out.

Join the r/developers Discord!

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

3

u/Own_Nail_2999 6d ago

That's the neat part - you don't. Software that is developed under time pressure tends to grow into a mess eventually.

That's the sad reality in commercial software development: Yes, there are better ways, yes, it should be reworked, no, there is no time or money for it.

2

u/skibbin 6d ago

Boy scout rule, leave it cleaner than you found it. Include some tech debt and cleanup into the work you're doing. Other improvements like upgrades, updates and such can be justified and prioritized as security, compliance, or regular maintenance. There's no way the higher ups are going to sign off on everyone downing tools on productivity in order to address something only the developers care about, so it has to be worked in to what you're doing. I consider it part of professional standards to include improvements in the areas I work in. Imagine a chef who doesn't clean, tidy or organise

2

u/Reasonable_Slide6304 6d ago

You wait for the AI to get good enough and cheap enough so you can just tell it to rewrite the whole things.

1

u/Lonsarg 6d ago

We try to hide as much as possible of cleanup and refactors inside change requests, without mentioning to anyone, we just do it on-the fly. Change requests must have big enough timeline to allow this

Only big refactors are tracked separately.

1

u/Spare-Ant7119 6d ago

So ur doing extra work for zero extra pay?

1

u/Lonsarg 6d ago

We are doing internal development inside company, not external customers, meaning there are no bills. So we have big motivation for less bugs and clean code since that make our life much easier and our afternoon without incidents :)

This is much harder is you have external customers, there hiding probably does not work, there you want to inflate the hours for technocal debt and also say you are doing it so inflated hours are explained.

1

u/PavelPetrPavel 6d ago

if they ask, it's just 'refactoring for performance' or 'fixing a memory leak' and no one ever questions it

1

u/Azuvector 6d ago

Depends how sane your employer is.

1

u/leon_pylo 6d ago

I think it matters what kind of technical debt, because that changes how much it will affect your future work.

You should assess where you are willing to take the debt, usually the more fundamental the systems are it touches (database, permissions, etc.) the more it's worth to start building it right in the first place, then track where you took it.

Then reserve some time for refactoring and fixing bugs, we mostly do it at the end or start of the day. So for example every day each dev takes the last or the first 30 minutes to work on reworks or optimizations.

1

u/martinbean 6d ago

If you don’t make time to address technical debt, then you can’t complain when your codebase is a horrible ball of mud.

If you’re making “quick fixes”, then you need to schedule the time to go back and do it properly, otherwise that quick fix doesn’t end up being “quick” at all, and will still be there years later (if management hasn’t decided to do a Big Rewrite before then, only to make the same mistakes because they’re then chasing feature parity and want the new version out the door by some arbitrary date).

1

u/Doismelllikearobot 6d ago

I create JIRA tickets for technical debt and they get worked into the sprint.

1

u/CypherBob 6d ago

The ideal is to designate 10% or so of your weekly time to technical debt on average, and a larger bucket of time for specific large debt.

The problem is that it's hard to sell this to management so it'll have to the baked into your teams estimations.

It is genuinely difficult to explain to a non-technical boss what tech debt is and why it should be prioritized when everything appears to be working.

1

u/smell-that-code Software Developer 3d ago

I have seen this in several places: it is hard to get budget to do maintenance on projects that are already in prod and that do not have active development. It is important to do it though, especially with so many new CVEs that get discovered every week. That is exactly the problem I am addressing for .net projects in my startup. In my consultancy job we ask the person who does the support mailbox that week to upgrade those older projects so we do not fall too far behind.

1

u/Popular_Lemon5455 3d ago

You need to be able to communicate how the cleanup will add business value. Speak in their terms.

“Remember that feature that took X time to build? We could have built it in Y time had the tech debt been resolved”.

Or

“Did you hear about that CVE that affected X company? That could happen to us if we don’t fix Y.”