r/ProgrammerHumor 16h ago

Meme battleOfBackwardCompatibility

Post image
470 Upvotes

25 comments sorted by

140

u/seba07 16h ago

Bro that's not legacy code. The codebase at my company is older than Stackoverflow.

28

u/SeparateAdvisor526 10h ago edited 7h ago

Code that hasn't been touched for longer than the longest tenure employee on the team is legacy imo. So if a team has an employee who joined back in 2021 code written before he joined is legacy to the whole team cuz no one who wrote is still working here

23

u/wildrabbit12 14h ago

People posting dont know what anything means

10

u/ineyy 13h ago

It's legacy now, old man

5

u/LocalOrganHarvester 14h ago

Man I love digging in this old shite feeling like an archaeologist. Sure, sometimes I want to kill myself but still...

1

u/Terranaform 1h ago

For a college project we had to go to a public institution and happened to see some of their code, they used Fortran

1

u/XI1stIX 14h ago

WDYM they had computers before 2018? ~OP probably

90

u/babalaban 16h ago

Pov: OP doesnt know what legacy code means.

46

u/StaticFanatic3 15h ago

Stack overflow started in the mid 2000s…

Just because it’s not on punch cards doesn’t mean it isn’t legacy

13

u/AeroSyntax 15h ago

Yeah. Anything that is older than 15 years has probably been written by someone that is no longer working on it. In fact multiple people added their code flavor and workarounds or hacks, which is the main reason legacy code is often overcooked spaghetti. 

1

u/InvestingNerd2020 12h ago

Yep! Given major layoffs in 2008, high paid job jumpers of the 2010s, and Ai layoffs again in the 2020s too many flavors of patch work on old code basis.

4

u/lookarious 16h ago

The worst use of AI is a code review

14

u/ColumnK 15h ago

It works as long as you take everything it says as if it's come from a brand new junior dev.

IE, don't immediately run off and implement the changes or make any wider assumptions, but think that maybe a fresh set of eyes saw something you missed.

I'd much rather that than have it write the code

22

u/zman0900 15h ago

It's bullshit like 75% of the time, but it does occasionally catch a real mistake I made or something important overlooked. Wouldn't pay for it myself, but with the company providing it, I don't see any reason not to use it.

3

u/Doophie 7h ago

The only thing we use AI for at my company is automated code review (we still manually review as well) and it catches all the minor typos or mistakes quick which does save the manual reviewer some time

5

u/Ugo_Flickerman 15h ago

If rules are well defined, it's alright

2

u/MasterQuest 14h ago

I make AI review its own code.

1

u/BossOfTheGame 10h ago

Really? I would have thought the worst use of AI would be something like creating misinformation to deceive people. Code review seems like a pretty good use of it. it's been a wild year, maybe we all need to recalibrate.

1

u/bloke_pusher 14h ago

And then it just replies: are you my daddy?

1

u/Powerman_Rules 7h ago

Imagine asking Ai to review code that was in its training. Yup looks just like it did when it was trained to mimic it. A+

1

u/WhosYoPokeDaddy 7h ago

Everyone: code has to be at least 30 years old to count as legacy code.

Me: if my PR is merged, it immediately leaves my consciousness and becomes legacy code.

1

u/MariusDelacriox 17m ago

In the book it's just code without any tests.

1

u/Breen_Pissoff 14h ago

Sloppiest code of today vs sloppiest code oat

1

u/Professional_Top8485 16h ago

I am quite sure when I show DOS codes llm will pull it hairs off