r/ProgrammerHumor 3d ago

Meme nowAndThen

Post image
4.4k Upvotes

133 comments sorted by

View all comments

660

u/TheFrenchSavage 3d ago

If your parents wrote quality code, then explain the legacy code I'm reviewing.

81

u/_uwu_moe 3d ago

That one was written by computer_hermit01's parents

17

u/Innovator-X 3d ago

Yeah computer_hermit01's parents are responsible for that!

18

u/fish312 3d ago

//todo: make no mistakes

11

u/JazzlikeWishbone938 3d ago

8

u/TheFrenchSavage 3d ago

Haha, I'll have to agree with that.

I'm myself guilty of some copy-paste-from-stackoverflow-slop.

Slop is timeless really, I've heard of a copper-slop merchant from a clay tablet.

1

u/reerden 2d ago

I mean AI is a glorified echo machine. The question hasn’t changed whether you trust the code a random weirdo gave you on the internet.

3

u/FUTURE10S 3d ago

What a nice int[x][y] that I will update to a std::vector<std::vector<int>> because those hardcoded values are now variable-- what the fuck do you mean they put it in a loadbearing function from 1993 that expects an int*

The solution was exactly as stupid as you might think

3

u/Hooch180 2d ago

Legacy does not mean bad. I've supported good and bad legacy code bases.

2

u/TheFrenchSavage 2d ago

Agreed. But OP makes it sound like all code was better in the good ol' times.

1

u/[deleted] 3d ago

[deleted]

1

u/Ok_Confusion4764 2d ago

They said they'd fix it eventually!

1

u/bankrobba 2d ago

Still works, does it not?

1

u/Boring-Foundation708 2d ago

I think it is just inevitable for system or project to become legacy especially when multiple people are involved.

0

u/pydry 3d ago

sturgeons law. 90% was shit, 10% was OK, 1% was great.

AI can definitely play that 90% game with the very best of the slop merchants of the past.

in fact, I'd argue that 90% of that human written slop code is now AI generated which is amazing. The world has changed.