r/ProgrammerHumor • • Feb 14 '25

[deleted by user]

[removed]

8.7k Upvotes

703 comments sorted by

View all comments

Show parent comment

3

u/ender89 Feb 14 '25

I tend to get those sorts of projects assigned to me with the task of making it maintainable. No one wants to throw out 40,000 lines of code, but it's usually easier to remake a spaghetti project than to try to mush it into a recognizable structure.

My approach is to use the spaghetti as a resource to understand how problems were originally solved, then clean up that solution. Usually involves pitching new solutions or processes to management to make the whole thing easier, but if something is such a pain point that it ends up on my desk then I don't tend to get a lot of push back.

1

u/Thunder_Child_ Feb 14 '25

My team is currently making new modern versions of features 1 at a time and switching over to those. We even remade our database in a different architecture with better indexing and we have to hydrate data back and forth to keep the new and old up to date. It's a slow process but worth it in the long run since it takes months to do features in the old system that takes hours or days in the new one.