Legacy Code Bug Fixes

The cluster centers on challenges and risks of fixing bugs in complex, old, or third-party codebases, including how fixes can break dependent code, organizational barriers to maintenance, and the persistence of long-standing issues.

➡️ Stable 0.6x Open Source
4,123
Comments
20
Years Active
5
Top Authors
#3466
Topic ID

Activity Over Time

2007
5
2008
14
2009
38
2010
86
2011
94
2012
131
2013
139
2014
171
2015
163
2016
225
2017
228
2018
228
2019
258
2020
301
2021
374
2022
400
2023
411
2024
361
2025
463
2026
33

Keywords

TODO PHP XKCD JS DAG OK HTTPS SAME ycombinator.com POC fix bugs code bug codebase software broken patching fixing fixed

Sample Comments

tomatocracy Jul 2, 2023 View on HN

But these are "significant problems with the code" which evidently can't be fixed by simply reverting relevant changes. In that case, it seems more likely to me that these are due to long-standing issues which would have caught up to the company sooner or later.

StavrosK May 15, 2013 View on HN

Ah, I see, thanks for the explanation. I imagine that if you're using someone else's codebase, you'd be in a much worse position to fix bugs immediately, I hadn't considered that.

alpaca128 May 23, 2024 View on HN

I've heard some VFX professionals mention that they got told certain bugs can't be fixed because the codebase is too old and complicated, and they are used to the software crashing randomly on a regular basis.If people have no alternative in their field or the alternative requires discarding years of experience, the incentive to fix bugs isn't as high as it could be. That's how you get problems like Excel invalidating data with automatic formatting for decades.

usmannk Jun 30, 2018 View on HN

I think a reasonable explanation may be that other customers possibly have come to unknowingly rely on some of the bugs. Shipping a fix of all the bugs could actually break their code!

mistrial9 Jul 8, 2018 View on HN

.. sorry to hear about the frustration, but almost all of these are ordinary problems with application development. Maybe the original developer made a mess, but that is ordinary too.. if you have a short-list of hmm .. ways to solve typical problems, in a workflow you like, in a language and functions you like.. then you can bring those to the new efforts.. production technical engineering groups will sometimes just bid to remake the whole thing, using their own ways, for exactly these reasons.

pingyong Mar 16, 2020 View on HN

>You'll often be stuck with code that you know is flawed, that you want to fix, but the organisation won't give you time to fix it until it's too late.This has unfortunately been my experience as well. Although in some sense I can understand it now. When only ~10k normal people per year use something, the chances of one of them trying to kill it are apparently pretty low. Although I'm still convinced at some point it is going to happen.

crazygringo May 18, 2012 View on HN

I dunno... the odd bug fix has the potential to really screw things up, when the person fixing it isn't the person who wrote it originally, or it's been months since then.

bananas Mar 4, 2014 View on HN

Thou who reimplements code is doomed to reimplement bugs as well.

kamaal Jan 21, 2014 View on HN

That's equivalent of patching a legacy code base and delaying the problem not exactly fixing the root cause.

megous Apr 16, 2019 View on HN

It's a complicated and huge codebase created by many people. It will have bugs.