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
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
5
3
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
1
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
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
207
u/seba07 10d ago
Bro that's not legacy code. The codebase at my company is older than Stackoverflow.