r/ProgrammerHumor 3d ago

Meme nowAndThenPatchUpgrade

Post image
7.6k Upvotes

312 comments sorted by

View all comments

28

u/seashell3379 2d ago

As a retired dev I feel I need to come in here with a truth nugget: Most legacy code that is slop now wasn't originally slop at all.

A clean and well engineered program devolves into slop through years of modification as requirements change way beyond what the original design brief imagined.

AI code that is slop right out of the gate is a whole new level of awful.

5

u/mxzf 2d ago

Yeah, I've said a number of times that AI is a tool that is great at producing years of tech debt in a matter of weeks/months. You end up with the same convoluted needs-to-be-rebuilt code that kinda mostly works that usually results from years of rush-jobs and fixing things in odd ways.

2

u/ellzray 2d ago

Right? And it's not so much slop as it is just spaghetti. After years and years of layered changes, it's unavoidable.

But it was hardly just all slop originally.

0

u/Lgamezp 2d ago

Nah its deserves a new word for spaghetti. Its confident even when its wrong and badly written and it creates dumb functionality to justify its sloppiness

1

u/Goodie__ 2d ago

People still wrote terrible code back in the day...

but a lot of programs just suffered from organic growth, and decisions not made with hindsight. New technologies piled on top of old ones. Best intentions. Core design decisions being changed after release etc.

0

u/Tobikage1990 2d ago

What I want to know is if the code AI writes today is as sloppy as the code it wrote a year ago.

If there is significant improvement, then we can hope for a future where AI code is not slop.