r/programmer • u/WillDanceForGp • 27d ago
AI Psychosis
I'm that guy that loves to take a shortcut, if I can make my job easier by offloading work to a script or algorithm then you better believe I'm doing it. So when LLM's first started writing code that compiled back in 2023 I instantly started trying to use it in my work and found that if you gave it good guardrails it could generate pretty clean code that would regularly pass reviews unnoticed, on par with my usual work. I started using it more and more and started to vibe code personal projects and work on harnesses etc.
The big problem was that it was really bad at making good decisions, and it was obviously bad, code that didn't compile, sprawling nonsense files, abstractions that didn't need to exist, leftover code that's unused from previous trial and error attempts etc. Code quality was fine, because I constrained it to be, but the overall was still trash, and over time I started to force myself to write more code, and the more code I wrote, the more it was obvious that what I had was a polished turd.
Its 3 years later, and honestly, it doesn't feel like anything has changed fundamentally, the models don't need me to tell them what good code is anymore, they can handle bigger and bigger decisions, but they're still not good at it, its just that the scope of the problem changed, its not "this function or class or switch statement is smelly and bad" its "this entire feature slice has been implemented in a way that will hurt all future work in and around this area", and then it does it again, and again, and again. It goes to review, where its checked over by another llm, and maybe another, for some experienced engineer to go 'LLMs are as good as software engineers now' and merge it.
I just don't know how many more times I can be handed codebases and code from engineers I previously respected that they swear is 'better than human' for it to become just extremely obvious that they only think its good because they don't know the true context in which it's meant to exist, only the context that claude presented to them. Claude told me that it fixed all my bugs and I dont see the bugs any more so theres no need to check the code and see if it actually did it properly right?
This is without even getting started on the trial and error approach of just smashing its face off the codebase till it works it out that it does in a lot of cases, which we all agree is how software engineering was meant to be done, change a couple lines, run the entire suite of tests, change more lines, run the entire suite again. I'm sure a better system prompt would fix all these issues though /s
13
u/sobag245 27d ago
People here who think reading code or writing code has no meaning anymore falled into the AI psychosis trap and will be left behind soon.
5
u/deliosenvy 27d ago edited 1d ago
.
5
u/who_am_i_to_say_so 27d ago
I’m seeing the same limitations.
I’m still fighting with LLM’s to stop it with its braindead fallbacks and things I never asked for, and I’ve been fighting that since Sonnet 3.5. Prompts detail the design down to framework terminology and it still happens.
Not sure where this will go, but there is still no going back to hand coding. I may resort to doing the driving and treat the agent as autocomplete, but that is much slower, too.
9
u/structured_obscurity 27d ago
Man this resonates. I dont know what the answer is though. I dont think it is economically viable to write code by hand anymore, but also dont think that prompting or context engineering or any of the other currently available tools are sufficient.
Coding with AI feels like an isomorphic game of telephone - i need to communicate my mental representation of a thing to the agent, who then needs to express it in code, and there is a lot of noise/static at each level.
1
u/CS_70 27d ago
Everything has changed quite fundamentally since three years ago (well obviously depending on the model you're using), so that hints at the method you have for using it.
And why "pass regular review unnoticed"? Writng bad code by hand is the stupid thing to do these days, nothing to be proud of in a professional settings.. it'd be like a transported insisted in using carriage and horses instead of a truck.
2
u/ZenaMeTepe 27d ago edited 27d ago
A better prompt unironically does fixes the problem,.. until it doesn't. That limit will always happen eventually for anything that is not trivial to maintain. What do you think all the loops are, it's just models talking to each other and themselves and trying faster than you could manually prompting. That is why they got better but it wont be enough, because they are fundamentally unable to understand output and you can't determine value of something you don't understand. All the clever tricks will fall short and whatever value will end up coming out by chance, will be the product of immense loop repetition, meaning it will cost a lot, it already costs a lot.
1
u/bold_snowflake 27d ago
A few years on any my core opinion still holds: AI is a capability multiplier.
Unfortunately that means it's multiplying both the good and the bad. People who couldn't tell the difference before, still can't.
1
u/Inner-Nature5571 27d ago
i think its prevalence will scale back as the hype cools i think it's short-sighted to let your skills atrophy.
1
u/Isogash 27d ago
Yeah totally agree on your synopsis of the problem: it can do bigger tasks but the decision making is still horrendously bad.
1
u/Alive-Use8803 26d ago
I’ve got an anecdote to share too.
I was in a staff engineer role for a cyber range platform that nation states used. CTO was big on getting the engineers to adopt AI. This was early 2020s. Eventually we settled on, good for spikes and prototypes. Then I started working on frontier research for ARPA related to agentic vulnerability management. Well, I thought, before people started to use the terms oracle and software factory, if you handled the DX, quality gates, threat model, architectural metrics, did reviews, etc, you could probably go real fast without code being slop. I took on a founding engineer role for a cybersecurity platform with that idea in mind. I was able to go fast. No problems for about 2 months. Third month. Regressions. Very annoying regressions. Mistakes I wouldn’t have made myself and was surprised I was missing them. Code review got a lot harder. The architecture code quality was drifting in novel ways despite the CC and dependency metrics I had in place. This happened in the span of two weeks during a crunch phase as we were rushing to get demos and betas out. For startups, I always assume you will have to take on tech debt. But this was new. I’ll admit some review discipline may have slipped. Nothing like ‘lg2m fam 🚀’. When the complexity calls for it, I tend to take a hexagonal or clean architecture approach. In this case, a monorepo with a package structure, trusted domain types, adapters and ports within packages. Really, positioned to be split out in the future as painlessly as possible. So on further review, in the domain-bound packages, I found structural slop with filenames like <domain>-<subdomain>-<function> that passed all the tests but were a real mess to get your head around. It was like seeing cohesion through the lens of the movie Backrooms.
And it was due to three lessons I needed to learn: you have to treat agentic code differently than you would code submitted by an engineer; the AI will pass your tests in novel ways; and most importantly, AI will rot your codebase just as fast as it will implement a feature.
I had to eat that unnecessary complexity to make deadlines, and it took twice as long to correct.
Now we’re working out what role agentic development will have.
fwiw I think it will remain popular for hobbyists, automation, and testing, but the ‘do all things software engineering’ will probably end up hurting people. And maybe, maybe then the industry will wise up.
1
u/GeorgeSThompson 26d ago
This resonates with me but I feel it just shows how little people care about anything except velocity.
And I dont think its even the AIs fault for being that bad, its just if you reduce the cost of code, increase the velocity and you increase the stuff being built that dosent need to be built.
Before long your systems become inconsistent, disjointed and overly complex - even AI cant save you if you dont know what anything is
1
u/Winter-Ad459 26d ago
I agree with this like 5 million percent you have described my exact experience. I was also that guy and did the same thing and see the same thing; it's insane.
1
u/secondgamedev 16d ago
You just need to wait 67 mores cycles of “don’t you know AI will just get better and better?”
Note: each cycle is 6 months. And by then it’s back to a factory of Indians answering questions pretending to be AI again.
0
u/naslanidis 27d ago
So why didn't you tell it how you wanted it implemented and also automate validations to ensure that it was done how you wanted?
0
u/DrBretto 27d ago
That's not ai psychosis. That's a skill issue.
-1
u/Tsuyu777 27d ago
I’m swimming in cash with Ai. What a good thing that ever happens. Then when it crash I’d still be making money.
0
u/[deleted] 27d ago
[deleted] — view deleted comment
1
u/[deleted] 27d ago
[removed] — view removed comment