Hacker News new | ask | show | jobs
by Barbing 1 day ago
Reminds me - per Joel Spolsky, “Things You Should Never Do” (April 2000 blog[1]) - is totally rewriting mature software no considered such a bad idea?

[1] https://www.joelonsoftware.com/2000/04/06/things-you-should-...

4 comments

I think it’s no longer something to dismiss so readily.

I wrote a bit about it during the summer[1], the trick is that a rewrite spans the gamut from rote transliteration to reconceptualisation. I argue that the bar has been lowered, but not removed.

And as ever, “it depends.”

1: https://duggan.ie/posts/the-dream-of-v2

One of reasons not to rewrite was that it's costly and the difficulty of the project is usually underestimated. As a result either it takes much more time than expected or a rewritten product becomes a gutted version of an old one (with less features and more bugs). LLM drops the cost so at least one of arguments has gone.
My insight into this, is that a legacy codebase often contains years of business decisions, pivots and hidden external and internal non-software logic baked in; you are always risking accidentally culling that knowledge stored in the codebase.

Often the risk is because said knowledge was poorly codified into the codebase, presumably that's part of why you're looking to refactor.

But if a legacy system in a big business has been running for a while I generally suggest just improving it in place. Modularise components and slowly modernize piecmeal until you've got something easier to work with and more stable.

AI doesn't really impact any of that process except speed of executing the coding aspect, I feel.

Do in a greenfields rewrite and someone from another business unit will ask why the barcode scanner doesn't accept an extra digit anymore, and you'll find you missed an overriden module that added support for pick and pack to sharpie in a line as a signal for freight that it should ship the next day (or some other wild bs production hack)

In a field that changes as much as technology, rules that are 26 years old often need to be reconsidered, at least.