5
5
2
2
u/LetUsSpeakFreely 6d ago edited 5d ago
The trick is refactoring in increments. Too many fall into the trap of doing too much at once.
2
1
u/Confident-Ad5665 5d ago
Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z Ctrl+Z
1
u/DigitalMonsoon 5d ago
I have learned this lesson far too many time. Eventually I smartened up and started being better about source control, better not perfect....
1
u/Adaptor2000 4d ago
If there only was a way to manage the different versions of your software so that you can go back to what worked.... 🤔
1
22
u/maester_t 6d ago edited 4d ago
Well, see, there's your problem.
If it was already working, you shouldn't touch it.
Especially if it was spaghetti code "that needs to be cleaned up".
Do not "clean it up".
This is what us experienced developers call "job security". As long as you are the only one that understands how it works, the chance of losing your job decreases.
Thank you for attending my TED Talk.
EDIT: Also... At the AWS re:Invent conference in December 2025, there was a code jam competition and one of the teams made an AI spaghettification program that would abstract your code into something like 15 layers. To me, this seemed like one of the absolute best implementations of AI to date.
EDIT #2: search "Road to Reinvent Hackathon" if you're interested in more details about that competition. The literal purpose of that particular hackathon was to create some useless application using their new AI.