| ▲ | ehnto 10 minutes ago | |
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) | ||