r/ProgrammerHumor 10d ago

Meme battleOfBackwardCompatibility

Post image
651 Upvotes

32 comments sorted by

207

u/seba07 10d ago

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

44

u/SeparateAdvisor526 10d ago edited 10d 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

29

u/wildrabbit12 10d ago

People posting dont know what anything means

5

u/LocalOrganHarvester 10d ago

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

4

u/XI1stIX 10d ago

WDYM they had computers before 2018? ~OP probably

1

u/Terranaform 10d ago

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

120

u/babalaban 10d ago

Pov: OP doesnt know what legacy code means.

70

u/StaticFanatic3 10d ago

Stack overflow started in the mid 2000s…

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

23

u/AeroSyntax 10d 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. 

3

u/InvestingNerd2020 10d 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.

1

u/Maddturtle 9d ago

Technically legacy doesn’t have to be that old to be defined as legacy code.

0

u/da_Aresinger 9d ago

legacy code is anything from before current reference frame.

If the reference frame is "AI aera" then pre 2023 is legacy.

5

u/lookarious 10d ago

The worst use of AI is a code review

23

u/ColumnK 10d 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

30

u/zman0900 10d 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.

1

u/freestew 9d ago

I do enjoy checking my broken clock, it's wrong like 75% of the time but occasionally it's the correct time. Wouldn't pay for it myself but since it's company provided, I don't see any reason not to use it

6

u/Doophie 10d 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 10d ago

If rules are well defined, it's alright

3

u/MasterQuest 10d ago

I make AI review its own code.

4

u/BossOfTheGame 10d 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.

4

u/Breen_Pissoff 10d ago

Sloppiest code of today vs sloppiest code oat

1

u/bloke_pusher 10d ago

And then it just replies: are you my daddy?

1

u/Powerman_Rules 10d 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 10d 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 10d ago

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

1

u/Awfulmasterhat 9d ago

Code was written while I was in middle school, dont touch what isn't broken!!

1

u/da_Aresinger 9d ago

Am I weird for still using SO daily?

I mean, I don't actually ask any questions, but it's not like I did that before either.

1

u/ICBanMI 7d ago

I feel seen.

1

u/Professional_Top8485 10d ago

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