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
5
2
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
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
1
1
140
u/seba07 16h ago
Bro that's not legacy code. The codebase at my company is older than Stackoverflow.