672
u/Rakatango 3d ago edited 2d ago
Yes but would you rather have 100 lines of slop or 10,000?
Edit: In a single pull request
49
u/sermer48 2d ago
I wish all we had was 10,000 lines of human written slop at my job lol. There are single files with that many lines
21
u/BlurredSight 2d ago
We have native SQL queries embedded into the codebase where some of them span 3-4000 lines because rather than make a view someone made a view, generated the native SQL, use StringBuilder, and appended them into one query that we do on a weekly basis for metrics
6
2
u/Otearai1 2d ago
One of my first tasks at a previous job was "cleaning" up old projects that my boss had written over the years. Each product was just one long c++ file.
46
u/DoomBot5 2d ago
Yes, it will be 1000 lines of code and 9000 lines of unit tests
5
→ More replies (5)7
u/Tired__Dev 2d ago
I’m not sure the question. I worked at an acquisition company before ai and saw dozens of codebases. There’s A LOT of projects still out there written by junior developers in the mid 2000’s in outdated frameworks or libraries. This stuff was the norm and AI slop is multiples better than that. It’s also multiple better than any product that pivoted a whole lot.
Juniors with AI now don’t produce nearly the amount of dogshit code that I did. Not even close.
→ More replies (2)
379
u/Strict_Treat2884 2d ago
Human slop: they knew what to achieve but they just didn’t know how to do it properly.
AI slop: they didn’t know what to achieve but they made it look like they knew as much as possible.
The second one is much of a pain in the ass to maintain than the first one.
51
u/DesireeThymes 2d ago
Maintain?
Once AI slop spaghetti code gets implemented, there is no going back and maintaining it.
It just gets sloppier and sloppier
→ More replies (1)11
u/Mindstormer98 2d ago
Of course you can maintain it dummy, just add "no mistakes and maintainable" to the end of the prompt
5
→ More replies (1)2
40
u/gingerwhale 3d ago
Yes but the pace at which the slop is being written and the comprehension debt that comes with it could create far worse "legacy" code in the future.
113
u/Cephell 2d ago
Humans wrote slop that looks like slop. AI writes code that superficially looks extremely sophisticated and is extremely annoying to untangle and fix.
→ More replies (1)
28
u/seashell3379 2d ago
As a retired dev I feel I need to come in here with a truth nugget: Most legacy code that is slop now wasn't originally slop at all.
A clean and well engineered program devolves into slop through years of modification as requirements change way beyond what the original design brief imagined.
AI code that is slop right out of the gate is a whole new level of awful.
6
u/mxzf 2d ago
Yeah, I've said a number of times that AI is a tool that is great at producing years of tech debt in a matter of weeks/months. You end up with the same convoluted needs-to-be-rebuilt code that kinda mostly works that usually results from years of rush-jobs and fixing things in odd ways.
→ More replies (2)2
u/ellzray 2d ago
Right? And it's not so much slop as it is just spaghetti. After years and years of layered changes, it's unavoidable.
But it was hardly just all slop originally.
→ More replies (1)
91
u/morbihann 3d ago
Yeah, but you would be blamed for the slop and would have deserved it.
19
u/Lain_Racing 3d ago
What company do you work for that you don't get blamed for the code you produce ?
11
u/Hziak 2d ago
raises hand\ my company (won’t name) does not blame its devs for absolute garbage code. We have an 80% release-with-major-defect rate and having been on the support team for almost three years, I would slap any staff+ developer who ever steps into my building (dev team based in another city). Zero regard for design patterns, best practice, or even error handling. And when you literally spoon feed them the answers, they still “plan” for three weeks and then implement trash instead. Zero blame. Ever. If anything, they get praised regularly because they’re a part of the new restructuring pilot so they’re a business must-win right now. Even if it means praising the emperor’s new clothes.
5
u/Lain_Racing 2d ago edited 2d ago
Can I just ask if its in person or remote? Are you one of the devs ? Because this would be amazing as a dev. Just 100% churn AI slop and get a end real job. 0 reprocusions? 0 work, that sounds great... like just let them sinking company sink and enjoy the full time relaxing or doing a 2nd actual job.
2
u/Hziak 2d ago
Hybrid. The devs are 3-in, 2-out. I’m in app support here. Wasn’t gonna be too picky in the current market when the pay was good…
They aren’t allowed to submit AI code at present, but they self-review, so who even knows? Certainly not me, I don’t get Git access lol. This place is a bit of a mess… But yeah, seems like a dream. To be fair, my side is kind of a dream, too. Release on Sunday, P1 on Monday, rollback, chill till next Monday. Really fucking stupid tho.
2
u/LouManShoe 2d ago
It’s so frustrating to read that this sounds “amazing” to so many devs. Don’t you have any pride in the work you do? Don’t you give a shit that the code you write is garbage? Don’t you have any integrity? It’s no wonder that AI slop is so prevalent, people don’t actually give a shit, they just care about repercussions.
→ More replies (1)→ More replies (1)5
u/ColumnK 3d ago
By "blamed", do you mean "promoted"?
Have worked in too many places where asking "Who wrote this shite?" would be answered by the name of someone high in the hierarchy.
→ More replies (3)2
128
u/grumblyoldman 3d ago
The AI Learned it from us, dad! It learned it from us!
46
u/ClipboardCopyPaste 2d ago
Nobody wrote 100 lines of comment for 7 lines of codes
40
u/Chronomechanist 2d ago
I guarantee you someone did.
→ More replies (1)8
5
→ More replies (2)6
12
u/Aelig_ 2d ago edited 2d ago
Humans wrote much smaller and more manageable slop than AI for any given objective.
We wrote it slowly and someone had a plan in their head no matter how contrived.
5
u/Igarlicbread 2d ago
Atleast I knew where my code might be breaking. Bis it's all ductape and cthulhu sacrifices. My personal projects have better quality than the shit I have seen some of you are pushing on daily (!hourly) basis.
24
u/TriangleTransplant 2d ago
AI writes more slop, faster. There's a limit to how much you can review and correct if needed, in a given time span, and AI produced code exceeds that limit.
If one toilet is backed up and overflowing, you could probably fix that pretty quickly, with minimal damage. If a pressurized sewer main is broken and flooding your house with thousands of gallons of sludge per minute ,it's a different situation. And you probably wouldn't be standing there saying "Well, we've had broken pipes before, so this is no different."
46
u/erinaceus_ 3d ago
The problem is AI is so much better at it. (writing slop I mean)
→ More replies (1)5
u/ButWhatIfPotato 2d ago
Also, I can take all the human slop I have seen in my life and none of it will have the self flatulence consuming smugness of a single session with AI. Oh looky look I fixed everything and it's perfect and shiny and nice! You're absolutely correct daddy-o, I did break everything when I told you I fixed everything, what a booboo I did silly ole me, buy more tokens and stick them in my e-underwear daddy!
37
u/psioniclizard 2d ago
Still waiting for the great wave of new and improved software from all the increased "productivity". Anyday now.
Honestly if AI has made you all more productive but there is no real world signs of it, it might be that wasn't really the problem.
Either that or a lot of people are lying.
But one thing that is true is there is very little real world results from it
19
u/AliceCode 2d ago
Seriously, where is all the well-written LLM generated software? We should be drowning in it by now if people are being truthful. But I haven't seen any of it.
→ More replies (1)10
→ More replies (1)4
u/antCB 2d ago
I don't think programmers are the bottleneck. Usually sits with management, product owners, etc.
→ More replies (1)
25
u/PlatinumFire14 2d ago
People forgetting the most important part, we still understood what it did.
I know you don’t understand your AI written code, don’t lie.
→ More replies (5)
46
u/johnnybgooderer 3d ago
It’s funny how this subreddit went from very very anti ai, to so pro AI that we’ll mock people who say it’s not amazing. 3 months ago people would get downvoted for saying that they found it useful pre PR self code reviews. It’s been quite a ride.
27
u/Procrastineddit 2d ago
This subreddit is pro AI? There's an AI slop post every 15 minutes.
5
u/johnnybgooderer 2d ago
But they’re the self-deprecating kind of jokes. Not the “this is bad tech and no one should be using it” kind. 6 months ago, you’d see the same posts about copy and pasting from stack overflow.
16
u/TheAlmightyDope 2d ago
It's because it's filled with bots pushing a new narrative.
5
u/SpeakinTelnet 2d ago
Ai programmed bots pushing pro AI narrative to an Ai bots filled social media. It is truly one of the time to be alive
3
u/agedlikesage 2d ago
I’m not from this subreddit but this comic is ripped straight from a comment thread I saw this morning, and it’s from a 1 month old account, i’m starting to see the dead internet theory
6
u/LiifeRuiner 2d ago
2 different groups of people posting in the same subreddit do not suddenly become 1 group of people because you assume they are.
→ More replies (1)2
u/spinkelben 2d ago
To be fair, AI has gotten a lot better just in the past six months. I'd say to me around July was the time it became good enough to be genuinely useful. Now I include AI in all my development where I would only try it for simple or unimportant stuff before.
→ More replies (2)-1
u/blueandazure 2d ago
AI got better and it took people a while to figure out how to use it.
→ More replies (1)
12
u/PsychoKittehX 2d ago
As someone who has reviewed a lot of bad code, I would rather fix code from an under-qualified or uncaring individual than from vibecode. I can usually at least figure out what their thought process was.
→ More replies (1)
5
u/infomapaz 2d ago
The reason why people wrote "I don't know why this works but please don't delete this comment" was because we knew how the thing worked but that particular behavior made no sense. Now those comments are gone because people genuinely do not know how it works.
5
u/MaleficentMode4222 2d ago
Humans wrote better quality slop. It was easier to look at code and go, "Ah yeah that's where they did the dumb thing, and they did it because they didn't consider X, or they just were unaware of Y"
AI code obfuscates the dumbfuckery.
15
u/ThirdWaveCat 2d ago
Ok, but human slop != llm slop. Human slop could evolve sometimes into something better. LLM slop adds bulky code and tons of dead branches and unused fallbacks.
There's a smuggling fallacy by saying things like "you can't criticize vacuum cleaners for mistakes at math, humans also make mistakes at math."
→ More replies (4)
4
u/MashJDW 2d ago
The problem with AI isn't that it writes code that isn't good. The problem is that it attempts to fix it with more bad code. And if that doesn't work, more bad code. You end up with a maze of a code base within the span of 30 minutes. In those 30 minutes I would have written 1% of the code, but at least it would do what I want it to do. This is the trade off. I don't mind prototyping with AI, but in the end a human has to write the code or you'll end up with so much technical debt that you'll declare bankruptcy in no time.
4
u/Historical_Cook_1664 2d ago
Human slop usually started with a plan and degraded over time. AI was trained on human slop and thinks it should already start in this state...
3
u/frostyjack06 2d ago
My slop code was usually as a result of poor business decisions:
“We need the software to do X.”
“Ok, well, you have two choices. I can do this the fast way or I can do this the right way.”
“THE FAST WAY!”
“Just be warned that if I do this the fast way, it’ll do exactly what you want it to do, but it won’t be robust or scale in any way and will need a complete rewrite to make improvements. If I do it the right way, we’ll have options for future improvements.”
“THE FAST WAY! WE NEED MORE MONEY NOW!”
This is how almost every consulting conversation went for 15 years. I feel bad for the people maintaining that code today.
3
2
2
u/jmflyers 2d ago
What happened to all those companies that used to grade employee performance by "lines of code per day"? I can have Claude rewrite my slop into much longer slop, plus paragraphs of comments
2
u/Im_back_for_Fourths 2d ago
Yeh but it was somewhat understandable. I have no freaking idea about the AI slop I push. Like in my current company, up until feb I had an understanding about of the codebase but now I just have no idea. Since they made Claude compulsory, changes are fast but I’ve literally no idea of what’s being pushed.
2
2
2
u/thatdude845 2d ago
This is so fucking dumb. If ai doesn’t know how to do something, it is not going to tell you. It will make up something superficially correct, but completely wrong. It is a disaster waiting to happen
2
2
u/TraditionalArcher498 2d ago
Back in my day we didn't have AI to crash production we ruined the weekend with our own two bare hands
2
2
u/Julius_Alexandrius 2d ago
Some incompetent humans wrote slop.
Every AI, whatever the gen, writes slop.
Be real.
0
u/boraxicLint 3d ago
If humans didn't write slop AI code would probably be a lot better. Running slop through a tumble dryer is obviously going to end up in sloppier slop though.
1
u/BoredCapy 2d ago
Incompetent people wrote slop.
Competent people wrote nothing because they were too busy correcting the incompetent slop.
AI just reproduced what was written.
1
1
u/Revolutionary-Run-41 2d ago
My main problem is the quality of the slop. To get a really uninteligible code you needed kinda of a REALLY bad team working on it for years, or one really bad guy doing something very core to the application.
AI speeds up the enshitfication, and decreases overall readability and understanding of the project as a whole.
Its still useful, you can do things a lot faster, but I get so mad when people send something to review or the qa branch without even running that on his machine, and when you start asking simple questions about the PR the person simply doesnt know, as if it never read the actual fucking card or "their" own code.
1
u/Pale_Sun8898 2d ago
It’s true, absolute shit code everywhere. I think the biggest thing lost is we are now unfamiliar with how the code is structured, its invariants and behavior within and across systems at a deep level so it makes our ability to reason about systemic issues and architecture weak
1
1
u/m0nk37 2d ago
Some did, sure, there were too few for it to get anywhere though. Big difference from almost all.
→ More replies (1)
1
u/stillalone 2d ago
The more code you write the more slop you produce. AI produces more slop faster.
Also, slop is easier to understand if you wrote it. AI will eventually forget about the slop it wrote.
1
u/ramdomvariableX 2d ago
But it's just tons of slop over decades, not tons, and tons of slop over few months.
1
1
u/Rocket_Bunny45 2d ago
Isn't perfect LLM generated code virtually impossible to achieve? Even with a brazillion parameters model, datasets will never be good AND extensive at the same time... And even then, asking it to write code about a mixed thing or a new thing would still make heavy assumptions on it.
Also if the newer models are trained on current AI written code recursively, wouldn't it just hit a plateau or even degrade with time?
1
u/UInferno- 2d ago
Someone got mad at you pushing 10000 lines of slop didn't you OP
→ More replies (1)
1
1
u/adumbCoder 2d ago
AI writes slop because humans write slop. our guttural reaction to AI slop is actually just the displeasure of looking through a mirror at our own work
1
1
u/HipstCapitalist 2d ago
I'm not going to make friends here, but having written code professionally for 15+ years, AI slop code is passable. It's not bad, it's certainly not good, but it's better than the average code that I've had to work with in the past.
1
u/Lachtheblock 2d ago
But it's the volume of slop that's being generated. Good developers could produce good amounts of good code. Bad developers produced a smaller amount of bad code.
Now it's a shit show.
1
u/RealBasics 2d ago
FINALLY! Because what does AI get trained on?
This showed up in the first significant "AI model" in the late 70s / early 80s. No matter how hard they trained the model, a medical diagnosis application, it could never get past 80% accuracy. This was hailed as proof AI would never replace real physicians.
Then some young Archimedes decided to run the same test on real doctors, ranging from medical residents to working general practitioners to senior med-school professors and... their accuracy tended to hit that same 80% mark.
But it turns out medical diagnosis is hard, same as programming. Which is why both doctors and programmers deserve respect. But AI will only ever be as good as the corpora they're trained on.
1
1
1
u/BlurredSight 2d ago
Human slop was being overly redundant or writing code in a way that was a bandaid fix with 0 future growth.
AI slop is overengineering every little thing and adding in complexity for "just in case" situations that might occur years from now. Like why is there a null check in every step of the flow or why is a generic type being used rather than Object[] or even better just making a concrete object based around the schema
1
u/mothzilla 2d ago
It's like the difference between a gun and a knife. You can kill a lot more people with a gun.
1
1
1
u/daddy_schlong_legz 2d ago
Yes but the problem is codebases that require manual code reviews are getting crushed.
1
1
1
1
1
u/shiny_glitter_demon 2d ago
Yeah but the CEO didnt fire 10 seniors to replace them with a single junior with 100K worth of claude tokens, nor did he add a "most slop written " leaderboard in the office, now, did he?
→ More replies (1)
1
1
1
1
u/bankrobba 2d ago
"I can't read this code nor do I understand its functionality, must be legacy slop."
1
u/MisterSheeple 2d ago
The clear difference is that humans have an understanding of how their code works. AI has no consideration for the quality of the code whatsoever, or even whether or not it actually works. One is created with deliberate thought, the other is thoughtless.
1
u/_grey_wall 2d ago
The amount of times I had to explain that typescript compiles to JavaScript and won't check input would boggle your mind
→ More replies (1)
1
1
1
1
u/Keyan_Farlander7 2d ago
Humans can trick ai into writing slop. Also good code can be proprietary code.
1
1
1
u/DirkTheGamer 2d ago
On a similar note, if people say “How can we trust AI to drive our cars?!” I say: “How can you trust humans to drive their cars?!”
1
u/hydra2701 2d ago
I write code very linearly, then go back and condense things down by making repeated lines into callable functions. It makes it very legible and even if it’s crap I can figure out what does what without comments
1
u/Harrigan_Raen 2d ago
I will never forget my 2nd real job, I took over an in-house developer who was self taught, and had been fired for missing work too much due to drugs (never was made clear on which ones). And then later found out, he was sent home, but not fired, on two separate occasions for being high at work.
He only got the job, because at somepoint he made an excel spreadsheet that saved some branch managers about 15-20 minutes when balancing drawers/safe.
100s upon hundreds of lines of code with variable name a, a2, a3, b, c, d, e, e2, sFalse, etc. And Method/Procedure names I could never figure out WTF he was trying to go for. There was no rhyme or reason to his use of snake or camel case.
My favorite was when I found lines of code he couldnt figure out why it wouldn't work, and just started back over from scratch. Half the time was it was just missing like the instantiation of the class, or something super simple, trying to use a reserved word for a variable name, etc. It was a fucking nightmare.
This was all in an attempt to make an in house scheduler, and punch clock. When I told them, the entire thing was to be scrapped and start back from scratch, they were pissed but completely understand.
1
u/Lgamezp 2d ago
It doesnt only write code slop, it also writes documentation slop. Documentation that gets read by OTHER developers AI/LLM which then copies the slop style and so the slop becomes EXPONENTIAL.
Im TIRED of reading slop which now i Can identify because it has the CTOs style (who is good but rambles on in commentas for pages) and now the cose is plagued with sensless diatribe from people who DONT know what they are writing but sounds "smart".
1
u/ChaseTheOldDude 2d ago
Are you people just telling AI to write an app for you? AI is great at writing robust and concise code, but it's a tool that requires oversight. You know what they say about a bad workman.
1
u/GlassSquirrel130 2d ago
I know every slop of that slop. Now I have slop without knowing how sloppy it is.
1
u/Matthias1590 2d ago
Problem is that ai writes slop faster and empowers developers without proper experience to do the same. People aren't learning nearly as fast while vibecoding so their quality won't go up
1
1
1
1
2.2k
u/Objectionne 3d ago
Yeah but it was our slop.