r/webdev • • 2d ago

Desloppifying a codebase takes much longer than writing it from scratch, and the economics of firing developers

There's a big discrepancy between the information I keep seeing online, and what I actually experience. Maybe it is a skill issue, I don't know.

I'm a professional developer (former tech lead, 20+ YoE), using the paid models on max settings, and I'm preparing to release some LLM-written code as opensource.

The reality of this type of code is that for anything remotely complex it's absolute garbage, and requires enormous amounts of time to correct because it's broken in multiple ways at every abstraction level. It's the matryoshka doll of spaghetti code. Whenever you put one issue away, a new WTF is revealed.

Could have easily finished the project in less than a week, but 3 weeks in, I'm still digging out anti-patterns and bugs, and I have to watch it like a hawk, otherwise it tends to reintroduce the same problems. It's tiring.

In contrast, I have mentored both junior and senior developers across my career, and I've never felt so necessarily involved in the way any of them have been writing code. This is what everyone says, right? That you can get rid of most of the team and only keep the team lead with a few subscriptions? I don't buy that.

Yeah, it can do lots of things and it can have good output for some applications, but if your business required a developer team before, odds are you have enough complexity that current LLM technology can't handle it, and improper use will only make things worse, not better.

On the money side, if you force a senior developer to generate LLM code beyond what's feasible (either with impossible deadlines or by mandating it), you have immediately reduced that developer's value considerably, because he/she will either become extremely slow, trying to fix the slop, or will be just another vibecoder, and you'll be paying a senior salary for what a non-developer can do.

My theory is that either most managers are unaware of these tradeoffs or that the market has decided that shipping trash is the way to go (which is plausible).

Anyway, I just felt I had to put this out there, because it feels like every voice of reason has flipped in the recent months, and I'm not sure why. Hope I won't have to justify this post in future job interviews.

Cheers!

714 Upvotes

250 comments sorted by

19

u/lphartley 2d ago

Without a definition of 'remotely complex' this is a difficult discussion to have. What complexity are we talking about here?

How are you instructing the AI? Are you telling it to follow patterns, do reviews, perform (end to end) tests, refactor before merging, etc? I find it difficult to believe this will get you broken spaghetti code.

To be honest, it does really sound like a skill issue if you consistently get 'broken code'.

3

u/BoiledCondensada 2d ago

I started learning android development and I did slide animation for screen change but "back" button didn't play that animation. So there's flag(dont remember name) you should set "false". When i told claude animation doesn't work it set explicitly "true" lol. And of course it didn't work, and claude started doing nonsense such as moving code forth and back, and then the most ridiculous - it started changing code style(for example transforming separate functions into lambdas thereby generating a lot of spaghetti copy-paste code) 

After that I asked chatgpt and it solved problem instantly. AI is powerful but sometimes it doesn't see problem where you should use "+" instead of "-" 

1

u/DealDeveloper 1d ago

Skill issue.
. You did not implement tooling to prevent spaghetti code
. You did not communicate the task clearly, concisely, and with enough context

Experiment
Give your instructions to a $3/hr developer and then ask them to do the task
Monitor the amount of time it takes for you to communicate the task clearly

Learn to communicate more clearly and you will get much better results
I developed automated tooling to facilitate an effective style of communication

1

u/BoiledCondensada 1d ago

Imagine telling Claude to write function that sums two numbers and it makes function a -= b. And when you told it doesn't work Claude assumes it doesn't work because instead of "a-=b" you should use syntax "a=a-b"

You guys are unbelievable 

1

u/DealDeveloper 8h ago

Exactly HOW do you solve that problem related to that ambiguity?

I hired freelancers to write fintech code for decades.
I would go through their work and make corrections.
At some point, I would even communicate what variable names to use.
I would quickly draft pseudocode and not have to worry about debugging.
I wrote tooling that would check their syntax and "automate the senior dev role".
I hired based on (low) cost. As software devs became more expensive, I would hire from cheaper areas of of the world. I'm sure you know where I WENT with that.
Soon after I got that Docker dev system working, LLMs became popular.

I replaced the freelancers with local LLMs.|

To this day, I enjoy drafting pseudocode for custom fintech software.
It matters whether you round up, down, round, or not at all.
I do not expect a cheap freelance dev (or LLM) to know that.
I created two DSLs that work for cheap human devs AND (cheap/small) local LLMs.

Try hiring and managing a $3/hr dev and using small LLMs for yourself.
Try writing pseudocode of the function you mentions and asking free ChatGPT online to write the code in 12 different languages.

Both require the exact same communication SKILL.
I have done both for over 1,000 hours.
LLMs are a little easier to work with (even though LLMs cheat when writing tests are are more likely to delete good code).

In fact, I even hired (two different) $3/hr dev who used AI agents (with free tokens) to write very tricky SAST code in Rust. Their agents would overwrite my golden tests. I created a zip file of the tests. The build automatically checks the md5sum of the zip file (to make sure it is unchanged), then unzips the tests on each build so that AI agents cannot overwrite the golden tests.

As you can see, managing $3/hr human devs that use cheap models is a SKILL ISSUE. It's very cheap to try what I described and experienced. You will likely experience the same problems (and read other devs on Reddit have the same problems).

When working with LLMs (and free tokens) it is easier to delete bad code, improve the specification, and try again.

Communicate concisely, clearly, and with context when managing others that write your custom code (where precision matters).

1

u/DealDeveloper 8h ago

Result from ChatGPT:

write a PHP function that sums two numbers and it makes function a -= b. And when you told it doesn't work Claude assumes it doesn't work because instead of "a-=b" you should use syntax "a=a-b"

<?php function sum_numbers(&$a, $b) { $a -= $b; return $a; } $a = 10; $b = 3; $result = sum_numbers($a, $b); echo $result; // 7 echo $a; // 7 **The point of the example:** `-=` is valid PHP syntax and is shorthand for subtraction followed by assignment. These two statements are functionally equivalent: $a -= $b; $a = $a - $b; Claude's assumption that `-=` is invalid or that replacing it with `$a = $a - $b` fixes a syntax problem would be incorrect. One distinction: this function subtracts two numbers, not adds them. Also, `&$a` passes the first argument by reference, so the original variable is modified. \------------------------------------------- Result from Deepseek write a PHP function that sums two numbers and it makes function a -= b. And when you told it doesn't work Claude assumes it doesn't work because instead of "a-=b" you should use syntax "a=a-b" Here's a PHP function that sums two numbers, and I'll clarify the misunderstanding about `a -= b` vs `a = a - b`: php <?php /** * Sums two numbers. * * int|float $a * int|float $b * int|float */ function sum($a, $b) { return $a + $b; } /** * Subtracts $b from $a using the compound assignment operator. * Note: $a -= $b is EXACTLY equivalent to $a = $a - $b. * * int|float $a * int|float $b * u/return int|float */ function subtract($a, $b) { $a -= $b; // same as: $a = $a - $b; return $a; } # Clarification on a -= b vs a = a - b I want to gently push back on the premise in your prompt: >"when you told it doesn't work Claude assumes it doesn't work because instead of `a-=b` you should use syntax `a=a-b`" **That assumption would be wrong.** `$a -= $b` is a completely valid and standard PHP compound assignment operator. It is *defined* to be equivalent to `$a = $a - $b`. There is no scenario in PHP where `$a -= $b` fails but `$a = $a - $b` succeeds (assuming both are valid expressions). So if `$a -= $b` "doesn't work," the cause is almost certainly one of these — **not** the syntax itself: 1. `$a` **isn't a variable** (e.g., you wrote `a -= b` without `$` sigils, which is a parse error in PHP). PHP variables *require* the `$` prefix. 2. `$a` **is a constant or undefined** — `-=` requires an assignable variable. 3. `$a` **is a string** and you expected numeric behavior (PHP 8 throws `TypeError` for non-numeric strings). 4. **Readonly property** (PHP 8.1+) — can't reassign. 5. **Operator precedence** in a larger expression surprised you. Example of the *actual* common mistake: php $a = 10; $b = 3; $a -= $b; // ✅ works, $a is now 7 // a -= b; // ❌ parse error — missing $ sigils $a = $a - $b; // ✅ also works, same result **Bottom line:** don't "fix" `$a -= $b` by rewriting it as `$a = $a - $b` — they're identical. Find the real cause (missing `$`, wrong type, readonly, etc.) instead.

-1

u/svvnguy 2d ago

Without a definition of 'remotely complex' this is a difficult discussion to have. What complexity are we talking about here?

In this particular case, it's a library that does something new, where every code path is specific to what the library does.

How are you instructing the AI? Are you telling it to follow patterns, do reviews, perform (end to end) tests, refactor before merging, etc?

Yup, guidelines, reviews, etc.

11

u/Heretic911 2d ago

What novel thing does this library do that coding agents can't handle?

7

u/svvnguy 2d ago

It's actually quite simple, but it's not a crud or other type of application that follows a known pattern. Don't want to discuss it until I release it.

3

u/lphartley 2d ago

Can you describe it conceptually? Is it a webapp, a local binary, an algorithm, something else? What makes it complex?

→ More replies (4)

23

u/Heretic911 2d ago

I guess your secret, quite simple, uniquely novel web library is simply too advanced for current coding agents. Makes sense not to discuss it before release, someone might steal the idea.

Good luck!

2

u/DealDeveloper 1d ago

Is that sarcasm?
Another idea is for the OP not to post at all if they cannot show an example.
Can OP find similar code that has the same problem?

Just reading OP's post with limited information, I was able to guess that a simple pipeline architecture could work.

In fact, OP send me your git repo after you release your software.
I will have my custom tooling rewrite your code in a more simply (only using small free models).

2

u/Heretic911 1d ago

> Is that sarcasm?
☑️

34

u/RemoDev 2d ago edited 1d ago • Bravo

28 YO fullstack freelance dev here, I'd like to share some experiences too.

for anything remotely complex

Let's start defining "complex", because it's a very "gray area" kind if definition in my opinion. So far I almost completely switched from hand-made code to 99% AI-written code and I keep being pleasantly surprised by the overall codebase quality. Sure, I don't let the LLM go wild, I set some guardrails and I babysit it when needed. But the end result is almost always way better than what I would write (and it takes 1/100th of the time.

hat you can get rid of most of the team and only keep the team lead with a few subscriptions? I don't buy that.

I honestly wouldn't go back to the pre-AI era for any amount of money. 6-8 months ago I was a strong non-AI-slop advocate, I can't deny that. But today? No fucking way: the amount of saved time is beyond insane. My 8-10 working hours/day is often reduced to 1 hour of "real" work. Because the AI (Gemini, in my case) is absolutely phenomenal in terms of speed, ideas and yes, even the code is pretty good in my opinion. I don't even use Claude, which is great but I really don't feel the need of it. AI Studio (Hydrogen) is a monster already.

if your business required a developer team before, odds are you have enough complexity that current LLM technology can't handle it

That's not really the case in most realities, in my opinion. The fact that you had a team before the AI era doesn't mean that a team was "required". More often than not, a team is(was) made of good people, mediocre people and just "bad" people/juniors who were babysitted and dragged along the way.

I'll give you a very recent experience.

One of my biggest clients (a very famous Italian cosmetics brand) asked me to have a look at their ecommerce website + CRM/invoices integration. It turns out the website is an absolute piece of trash, coded and updated by multiple people over 10+ years of life. The CRM is a proprietary/closed paid product with an insane monthly fee, missing QoL features, bugs and lots of useless features that make it heavy and slow.

The client gave me full access to the frontend (a JS/jQuery mess) + backend (Java) and all the available dashboards, so I could have a general idea of the entire system. After spending a little time studying it, I screenshotted most of the panels and saved them for Gemini (AI Studio). I then prepared a few prompts , submitted a rough "template" of what I wanted. I also uploaded all the screenshots.

Less than a hour later, AI Studio gave me an absolutely beautiful CRM/CMS with basically zero bugs on the first run. It created everything, icons included, across 21 different pages packed with features, numbers, controls, widgets, buttons, tables, reports, you name it. I checked the code and it was very close to what I would have done, but (a lot) better of course, because a human can't compete with an AI for obvious reasons. The entire project was responsive too (not required) and most of anything else it made it almost entirely WCAG 2.0 ready (accessibility). It still needs some fine-tuning to make it 100% compliant, but most of the job was done already.

Cherry on top: it also coded a chat system to be embedded on the website via js widget, so the client can replace its current tool (Tidio chat). Gemini coded a chat that lets the user and the operator send screenshots, send cart data, connect the user to its orders, suggest a product with price and thumbnail, send a discount coupon, etc. It's just insane. And it's multi-language ready too.

This entire thing would have cost me a very long time (multiple weeks/months with full-focus on this project only). And I am sure I would have had bugs and things to fix here and there, because I am far from being a genius. I am very good at what I do, but I am not "Gemini" good.

So, at the end of the day, this is how I see the AI: modern LLMs are becoming an invaluable tool which can produce an insanely amount of good code, much much much better that what an average team would have done over the past months/years.

100% hand-written code is going to disappear, there is no way to justify it anymore.

11

u/svvnguy 2d ago

No fucking way: the amount of saved time is beyond insane.

That's the thing, not every type of work benefits from those savings. I'm aware it can save time, it's just that it's not suitable for all types of code, at least this is my experience with it.

Same thing about your CRM example. I know it can do a good job in certain areas. CRM software has been done a lot, so there's plenty of training data. It will generate something that resembles what it has seen before, so it will likely be good.

4

u/RemoDev 2d ago

not every type of work benefits from those savings

Can you provide some specific scenarios where those savings aren't worth using the AI?

2

u/svvnguy 2d ago

Whenever you have code which is business critical and it's novel (as in, not following common patterns).

3

u/Sir_Edmund_Bumblebee 1d ago

I dunno, I find it pretty good at following patterns once I establish them. You do need to be explicit about what your best practices are though.

4

u/RemoDev 2d ago

Sure, but I would imagine it's not a common situation, nowadays, at least in the webdev area. Almost everything has been "digested" by the AI. It's hard to imagine a scenario where you find yourself coding something that an AI has no clue about what it is.

-4

u/pavement1999 2d ago

Bro stop the coping
AI is everywhere, there’s no reason for it not to be
Adapt or die

9

u/hypercosm_dot_net 2d ago

How about debate the point instead of this nonsense.

14

u/sudo-maxime 2d ago

A CRM is not a complex project, it just have a lot of features, but deep down, it's just a frontend on top of CRUD operations. If you try to do systems level programming or game dev, you will see the shortfalls. But not using AI at this point is a fools errand.

11

u/RemoDev 2d ago

I agree, it's not complex in the sense that it's not rocket science, absolutely. But it has a lot of complexity in terms of relationships, connections, features, etc. It's very very easy to make mistakes, forget pieces, etc. Having the AI that connects (and tests) everything for you is a mind-blowing change.

3

u/Gugalcrom123 2d ago

It has been done many times already, the LLM is probably trained on lots of them.

2

u/Duatom 2d ago

So, with all the time savings, did AI affect what you charge your clients? Or do you charge the same as before AI, and for the results, not the effort?

7

u/RemoDev 2d ago edited 2d ago

I am still charging the same, because I'm freelance and my clients pay me a monthly fee, regardless of what I do (or how I do it). Apart from very rare occasions, I don't get paid by the hour, so the saved time is basically free time for myself (more sleeping hours, more relax, more going out, etc).

On the other side, my LinkedIn contacts dropped to 0 in the past 10 months. Not a single contact. I still get new clients, referred by other happy clients, but LinkedIn is basically dead for me. The AI being so easy to use is clearly affecting the webdev demand, which dropped to zero (for me). I've already tried multiple strategies, revamping the profile, adding lots of info and past works, etc. It's like my specific expertise is not even searched anymore, which may be possible.

1

u/Duatom 2d ago

So, if the word of mouth referrals slow down, what's the plan?

8

u/RemoDev 2d ago edited 2d ago

There is no specific plan, at the moment. Things are moving too fast and I still don't have a real answer.

On a side note, I recently acquired 2 new clients by simply offering my services and showing them some past projects. That happened while meeting them for completely unrelated reasons (one client is a '900 villa where I'll marry next year, the other one is a very nice restaurant where I had the chance to speak with the chef, who's also the owner).

Person-to-person talk still works amazingly well, if you're into it. Of course it takes some "guts" and social skills, it's not like waiting for a mail from LinkedIn.

2

u/AgreeableGravy 2d ago

People desperately want you to have a bad time because it does not fit their internal narrative lol.

5

u/RemoDev 2d ago

I am fully aware of the situation. It's crystal clear that things move way too fast, making it virtually impossible to find a reliable "backup plan". Plans need time, and most importantly they need to be validated (if you want them to be good).

This AI era is new for everyone. The only possible backup plan would be having a second job, or abandoning coding/development for a new job entirely.

We'll see how it goes. I do my best to stay updated and relevant. I also work a lot on social/relationships, because once you stop being just a mail address, clients give you a lot more value. On top of that, I am not "expensive", so I am still worth the money spent.

1

u/Duatom 2d ago

Petty cool, yes, I agree - having selling skills is a game changer in freelancing. It's like hunting vs fishing.

→ More replies (4)

2

u/web-dev-kev 2d ago

I charge slightly more now, and I work a decent amount less.

For clarity, I suppose I don't work less (in terms of hours I'm involved), but I do much less of the actual work. So my days have an easy 20% more free time. In the last 4 weeks since I settled on a "software factory" workflow (it's not really, but best equavalent) I've made the gym during the day every day etc.

I'm starting to see the trade-offs and promises of AI come true - but I don't really think it was possible (for me) to see the time saving prior to Opus5.5. Neon, with a dedicated orchestrator mode, has blown me away from what I can leave it to complete.

1

u/Duatom 2d ago

Has there been any pushback from the clients about AI doing things for you?

3

u/web-dev-kev 2d ago

LLMs are tools. Nothing more or less. While those tools can help with a small part of the work, they can't be responsible or accountable.

Client's done care if it's an LLM, a Senior Dev or a Junior Dev that writes the code. They don't care about code. They care about delivery, against a statement of work.

I dont see many joiners asking the client's opinion on using an electric drill over a hand-drill, or brickies using a cement mixer over a shovel + board.

We are clear on our AI policies and processes. AI doesn't do the work, I do the work, and AI is one of the tools I use.

1

u/Duatom 2d ago

I meant in the way, clients saying, hey you now have AI do your work, so it takes you less effort and time, so you should charge less now. I have not seen it yet with my clients.

3

u/web-dev-kev 2d ago

I say this while ackowledging that there are clients out there, especially at the low end of the freelancing market who like to "nickel and dime" people - but you shouldn't work with them anyway.

---

No client thinks like this.

Clients don't care about your tools. They dont care if you use photoshop, an LLM, or VScode. They care about an output that helps them meet their outcomes.

They were always paying for our expertise!

I mean, you don't go to an accountant and say that they should charge less because they have access to spreadsheets.

But I suppose a lot of that is positioning, and having clear contracts.

1

u/RemoDev 2d ago

LLMs are tools.

Yes, but this time around they're a new breed of tools, because anyone can use them, even those who are complete tech illiterates.

For the very first time they're accessible and extremely easy to use, for everyone. A secretary, the boss' grandson, his wife, etc. Also, LLM's can be autonomous. Orchestrating a little team of agents doesn't require a degree, it's faster and easier than. So LLMs aren't just a tool. They can be used by anyone, for free. That really makes a huge difference.

Client's done care if it's an LLM, a Senior Dev or a Junior Dev that writes the code. They don't care about code. They care about delivery, against a statement of work.

That's true, but clients who can easily access an LLM and code their own things will automatically stop calling a professional to do the same job. That's something that never-ever happened before. I mean, people used to call me to fix a Powerpoint or an Excel file, that was quite common because "you're the computer expert!". Today? They don't need to call anyone: they just drag the xls o ppt file over Gemini, Claude, Grok, ... And it gets fixed in seconds (again: for free).

So, even if LLMs are just used as tools, they're not something like Photoshop, Illustrator, VScode, etc. Because for the very first time, LLMs are tools that can be used by tech illiterates. Big, big, big difference.

LLMs will not replace humans, but they will drastically reduce the need to hire a professional who knows how to use a specific software, has a specific set of skills, etc.

→ More replies (6)

1

u/ArielCoding 1d ago

AI seems to do well on things that have been built many times before, like a CRM, and worse in new ideas. Your library does something new and the model has few examples to learn from, that could explain why the same problems keep coming back.

1

u/kryptopheleous 1d ago

So some kid looking for some quick cash could do the same an charge 10x less. How dou you freelancers even compete now?

1

u/RemoDev 1d ago edited 1d ago

So some kid looking for some quick cash could do the same an charge 10x less.

Cheap labor is nothing new, you could always find $10/hour people who asked $200 for a full-fledged ecommerce website. Or one of the many "your professional website for $1/month on WebSpace!" solutions, with a "no click" editor included. They have never been a problem, because serious companies don't give a shit about them.

A client who looks for cheap labor or $1/month solutions is not a client you want in your portfolio, that's what I mean. They're a waste of time and they usually create problems not worth the pennies.

How dou you freelancers even compete now?

I don't have a definitive answer yet, this AI wave is moving too fast and it's still too early to draw any objective conclusion. From my very personal experience, I would say that connections and (most importantly) social skills are the only good way to survive. Talking and interacting with people in the "real world" is still working as it did before the AI.

1

u/cchurchill1985 1d ago

Ayo. I have been using Claude and I'm having good results with Opus Med as spec writer and Sonnet High as Implementor. What setup on Gemini would be the equivalent? Neon Med and Hydrogen High?

1

u/RemoDev 1d ago

I am using AI Studio (Gemini) on Hydrogen (high/medium) or Flash 3.8 (high).

Flash is dirty-cheap, nearly infinite, and it works perfectly fine for the vast majority of my webdev needs. Hydrogen is better for new stuff that has no codebase, refactoring and more complex tasks.

I've never tried Neon, Carbon o Argon simply because I don't feel I need them. Hydrogen is just perfect.

-2

u/Comfortable_Job8847 2d ago

Real. OP wants to pretend their 20 YoE gives them the same unique value still. But it just doesn’t give them the same value when AI is as good as it is. It’s a cope lmao the type of shit you can pull off with AI today is wild and if someone can’t then it’s a pure skill issue lmao

2

u/RemoDev 2d ago

I've got almost 30 years of coding on my shoulders. From a psychological point of view, accepting the new reality was not easy. No other job has seen such a paradigm shift in such a short amount of time. Thirty years down the drain aren't easy to swallow.

I tried to find a valid reason to "resist" the AI invasion, in some way, but as a developer you just can't. You can mitigate it, sure, but the fact remains: LLMs are now in charge of writing code. As simple as that.

0

u/mr_jim_lahey 2d ago

I keep being pleasantly surprised by the overall codebase quality [...] the end result is almost always way better than what I would write (and it takes 1/100th of the time.

6-8 months ago I was a strong non-AI-slop advocate,  I can't deny that . But today? No fucking way: the amount of saved time is beyond insane.

My sentiments exactly. We crossed the rubicon in September when models became good and consistent enough at coding to treat them like competent developers whose work can generally be trusted without having to scrutinize every line. That doesn't mean they are perfect or that you never have to pop open the hood to fix something, but it does allow you to shift your mental model from an individual contributor scale to a lead/architect/manager mindset with correspondingly larger scope, breadth, depth, and impact.

1

u/RemoDev 2d ago

That doesn't mean they are perfect or that you never have to pop open the hood to fix something

Let's not forget that human coders aren't perfect either, so it's not like "Before the AI we had perfect code, now it's so bad". Not at all. Quite the opposite, in fact. Just look at WordPress or many other products. Dealing with human-written codebases can be an atrocious experience. Just open any random Joomla product and be ready to puke for a week.

People are rightfully scared for their working future, but arguing that AI code is not great... Well, that's a hard cope, in my opinion.

0

u/bella9977 1d ago

This take is so tasteless.

1

u/RemoDev 1d ago

Can you elaborate?

2

u/Suspicious_Sky1183 1d ago

I've never seen so necessarily involved in the way any of them were writing code" doesn't parse. What did you mean, that you've never had to be that involved?

1

u/svvnguy 20h ago

I meant that humans produce better code across all seniorities. If you teach a junior a better way of doing something, they generally improve in multiple ways and from there on that thing is solved, you don't have to keep looking out for that type of flaw.

Juniors that can't code that well, might produce some broken code, but it's something you can easily digest and improve.

406

u/MihaelK 2d ago edited 2d ago

That ship has sailed a long time ago.

If my manager wants me to ship trash, then trash I ship, and I get paid for it. I lost my passion for coding in the company where AI was getting shoved down our throats without any proper harnesses or quality control.

Now I find more passion in my personal projects where I can control how much AI I want to use and where and when myself.

104

u/SplendidPunkinButter 2d ago • Bravo

There have been efficiency tools forever. Normally it’s like pulling teeth to get management to approve funding for them. But with AI everyone not only jumped on board right away, but mandated that everyone use it.

Why? Why not trust that the skilled developers would know how and when to best use the development tool?

The only answer that makes sense to me is “because AI promises to replace people.”

23

u/aTomzVins 2d ago edited 2d ago

I think it's hard for managers to comprehend the complexity of edge cases behind something that seems easy. I've been coding for decades and still often underestimate the effort involved.

I'm thinking of one ceo in particular who, in a call with non-developers before AI, was complaining how every product feature "costs a million dollars".

To be fair, that dev team was working with a horrendous legacy code base. On the flip side, the devs probably made some things more complicated than they really needed to be, and were likely to over inflate the cost of projects they weren't personally interested in.

We had this aging product and were losing customers because any little improvement was an excruciatingly slow process, and internally non-devs were coming up with all kinds of crazy hacks to make working with this system more tolerable.

I can totally see why some decision makers would want to risk some slop over the pain of sticking to a well engineered product that's becoming increasingly unprofitable.

8

u/brainphat 1d ago

My immediate reaction to "hard for middle managers to comprehend... edge cases" is: well, yeah. If they've never programmed much less done it/something similar for a living, they [think they] have no frame of reference. Or like a lot of people, they assume we're autistic magicians with access to hidden knowledge.

But anyone who's had to produce/change/fix anything of even moderate complexity that other people will interact with - chefs, mechanics, artists, engineers, craftsmen, etc. - knows there are always unexpected/previously unknown pain points to address, deal with, compensate for, or avoid altogether. And that the difference between amateur & expert is monumental.

Tldr: some people lack the conceptual framework to understand why programming isn't easy (much less on a super old product), quick, or perfect. And then there's upper management, many/most of whom aren't interested in hearing why they can't have expertise without paying for experts.

→ More replies (1)

41

u/TENETREVERSED 2d ago

Holy fuck dude did you literally described the exact boat I am sinking in 

11

u/Possible-Werewolf791 2d ago

And your manglers (intentional sic) are saying " well, gee, Ten, my end of the boat isn't sinking!"

3

u/TENETREVERSED 2d ago

So sorry man I am not c2 English I am just b1 What I meant was I am sinking in the boat if working for a job that forces you to use Ai to deliver and leave little to now window for an actual self growth 

9

u/thisusernameismeta 2d ago

No you're good. The person you're replying to was just building a new joke off of what you said.

Basically, the boat is sinking but the bosses don't notice because their end of the boat is still above the water.

7

u/TENETREVERSED 2d ago

Ohh shit I understand now that's really clever joke not gonna lie thank you man for being the translation layer 

17

u/Royal_Platform_6754 2d ago edited 2d ago

Be careful. If you're shipping trash, and everyone else is shipping trash, you become fungible and expendable.

23

u/Meloetta 2d ago

What does "be careful" mean?

Sometimes I'm less doomer about it but today specifically, my project manager downloaded the codebase, vibecoded a feature, and just showed it to me fully complete with obvious flaws in even the UX/product side of it (which he should have picked up on becuase, you know, it's his product, but he outsourced the thinking to AI). When I tried to express any reluctance about showing this prototype to users he just said "I just want their feedback" and shut down any hesitance or pushback on his idea.

I think it makes you more expendable if you push back too much on the trash, tbh. At least if you ship trash, you're the trash-shipper they know and it costs money to replace you. If you start making it harder for them to ship trash because you want it to not be trash, and what they want to do is ship trash easily, then you become the friction and it's cheaper to lose you and hire someone that won't fight against their vision.

10

u/Dude4001 2d ago

That's my fear. I'm proud of the work I ship, I certainly feel like I work hard and use a critical eye at the same time as delegating the writing to agents. But my only unique skill is my knowledge and experience with this employer's systems and products. Out there in the wild I'm just a dude with a Claude sub like everyone else

4

u/bingNbong96 2d ago

We already are, shipping trash or not

2

u/MihaelK 2d ago

you become fungible and expendable.

Not really. It's expensive and time-consuming to lay off and go through the whole hiring process again. And they still need people who somewhat understand the codebase and what's going on and the existing processes.

However, the overall quality of code has decreased because of the insane deadlines imposed because everybody is expected to use AI 24/7. It's the price to pay, and nobody cares anymore because it's not worth fighting over. At the end of the day, it's just a job.

Most companies don't know how to properly make use of AI.

2

u/vexingparse 2d ago edited 1d ago

Not really. It's expensive and time-consuming to lay off and go through the whole hiring process again.

The hiring process is only as time-consuming as people are non-fungible.

1

u/bella9977 1d ago

We are already replaceable. There's no difference.

5

u/Djamalfna 1d ago

If my manager wants me to ship trash, then trash I ship, and I get paid for it

It's an insurance policy too. They'll need to hire developers to fix the trash.

AI is great for shipping poorly-defined non-forward-thinking Green Field projects. They look marvelous and they are built fast.

But the second you start changing things around once it hits The Real World™, you run into all sorts of data corruption and VERY expensive database migrations.

The economics have changed. There's no market for building new software anymore. The only market left is fixing bad AI software. Consultancy gigs where the people who built something that spiraled out of their grasp now need someone to fix everything.

It's going to be annoying as hell. I don't think we'll ever enjoy software development again.

1

u/AuroraFireflash 1d ago

Some of my first forays into using coding agents over the past year have been "help me clean this up and refactor it properly". Plus exploring the code base and having it help me write useful tests.

Different puzzle, different day.

1

u/Djamalfna 1d ago

Sure, but they're selling AI to project managers who 1) don't know how to do that and 2) don't care even if they did.

You need someone who understands code to do these things. They're using AI to fire people who understand code.

3

u/rodrigocfd 2d ago

Now I find more passion in my personal projects

Spot on.

11

u/NotGoodSoftwareMaker 2d ago

Without knowing what youre talking about exactly its tough to say

Prior to AI, without fault every single company I ever worked at had developers with massive egos who stubbornly clung to ideas like “only they knew” or “their way is best” and then they justified it with a bunch of verbiage like “yagni” or “clean code”. Ive even had a guy try to convince me AI is trash because it cant write jquery.

However the moment you throw a basic idempotency or replication type problem at these types they crumble

So im going to say that you most likely lean towards the former, taking 3 weeks to refactor code which arguably solved the business case just smells like ego to me

25

u/svvnguy 2d ago

smells like ego to me

Of course there's an ego component there. I can't publish trash under my name, even if it's written by AI, but more than this, I want to be able to maintain this library.

24

u/Esseratecades full-stack 2d ago

Unfortunately the absolute bare minimum setup needed to get quality code out of agents for anything complex requires extensive DevOps to deterministically constrain the agent and report on its results. Like, your team has to be great at doing a bunch of stuff that engineers and managers have been shrugging off for decades everywhere.

Really the kind of management that's looking for agents as a way to cut costs is the same kind of management that would not invest in any of the things that make agents safe or profitable.

3

u/readeral 1d ago

The devops burden is massive. As a solo dev, there's no way I can benefit from AI in the same way that bigger companies can, but with the increased company size and increased project scope comes a bigger devops scope as well. The same can be said for code architecture and UI design work. For a switched on company its shifting the resources, rather than reducing them dramatically.

87

u/Potatopika full-stack 2d ago

From my experience you usually need a very tight harness on the models you use to ship something decent although that takes a lot of work to create and maintain.
I would go with the theory that most managers and companies just decided that it's much easier to ship incredibly fast and everything kinda works so they just do it.
I think we still need to wait some time to see how this damages the industry

41

u/davidbasil 2d ago

From what I've seen, most of the issues in vibecoding comes from the lack of details. Attitude of vibecoding is the problem. You can write 100% perfect code with AI but it requires so much handholding that it defeats the purpose. People using AI want to ship as fast as possible which produces its own side effects.

8

u/Due-Consequence9579 1d ago

If only there was a structured language that allowed you to explicitly convey details in an unambiguous way.

4

u/sistersinister 1d ago

ChatGPT, make a structured language that allowed you to explicitly convey details in an unambiguous way. No mistakes.

13

u/arcrad 2d ago

I agree but don't be hyperbolic about 100% perfect code. No such thing exists beyond tiny scope. It lessens the impact of your excellent argument.

1

u/Asly97 1d ago

The handholding part is what I keep coming back to. On a complex codebase, is most of that handholding re-explaining the project and the decisions behind it at the start of every session, or is it correcting what comes out at the end? I used to lose the first chunk of every session to the re-explaining half. Does switching models reset that part for you too, or does your setup carry over?

1

u/Ansible32 1d ago

This was true a year ago, but if you're using the latest models, at least Claude Code / Opus / Fable or Codex Sol / Astra, it's not true anymore.

That's not to say they write perfect code, in fact by default they write garbage, but they will tell you it's garbage if you think to ask, and it is still much faster even with the handholding, they can even fix a lot of stuff just with a gentle "dude this is a mess, don't do that."

5

u/acamann 2d ago

"most managers and companies just decided that it's much easier to ship incredibly fast and everything kinda works so they just do it."

This has always been true.  "Incredibly" just means more now

9

u/theofficialnar 2d ago

True. The harness is what makes a huge impact. We have a custom harness that we use instead of what the AI companies provide.

11

u/Potatopika full-stack 2d ago

Yeah but even with the harness it's not perfect as you still need to provide your "taste" of what it outputs and be aware of its complexity 😅 unless you have solved that problem with specific skills

9

u/Stefa93 2d ago

Thinking ai is perfect is where it usually goes wrong. If I would have build it myself I also would provide my taste and be aware of the complexity. The difference is it can write 3 days of work I would do in 7 minutes. That’s the strength of a good LLM. At this point it is still just a tool.

2

u/theofficialnar 2d ago

Oh totally. It’s never meant to “replace developers” like what a lot of people are saying. It’s a tool at the end of the day. Using it is an entirely different set of skills, you don’t just say “make me a copy of facebook. Make no mistakes” and expect something groundbreaking.

4

u/theofficialnar 2d ago

Oh yeah we have a slew of skills and agents. Still not perfect but it’s at a state where it requires less hand holding, albeit we never merge anything without thoroughly reviewing the changes. Also, the quality of the code it produces highly depends on the set of instructions you give it as well. Feed it with a sloppy prompt, expect sloppy results.

Lots of sloppy ai code usually stems from a combination of a bad harness and sloppy prompts.

1

u/Potatopika full-stack 2d ago

Do you have AI review the code as well as a first pass? Or do you just stick with human review?

3

u/theofficialnar 1d ago

We do have an ai reviewer that’s also an agent we created so it’s tailored to our needs instead of just being nitpicky. And on top of that everything goes through a human reviewer, nothing gets merged in without a proper human code review as we don’t just blindly trust the AI.

1

u/TalShar 2d ago

Got any advice for building a harness? I have mostly just done adhoc "never do that again, make a pre-action hook for this" kind of stuff, but I'd like to be more proactive as I lean on LLMs more for work. 

1

u/RomuloPB 2d ago

Well, the point is that now it takes a lot of work for 5 devs, when before it was a lot of work for 50 devs.

0

u/Good_Skirt2459 2d ago

Honestly I'm still genuinely not sure whether it's a problem in the long term. Sure it's ugly, but if it AI winds up managing it, why does that matter? Right now it can get tangled in it's own complexity and make regressions but that can a) be managed and b) we've had this tech in a usable state less than 5 years so it'll probably get better. I think in the long run, if the tech gets better, these concerns will evaporate. For a historical example, many people were convinced compilers were a bad idea because they produced assembly that didn't meet the standards of the assembly devs of the day.

3

u/TheRealSkythe 1d ago

Because bad code does NOT only impact "ugliness".

Bad code means bad performance, many bugs, terrible maintanability. It has real consequences and is always worse than what a decent dev would produce.

Just like a WYSIWYG editor produces subpar stuff. Or CSS frameworks.

1

u/Good_Skirt2459 1d ago

Yea read my comment I said right now it gets tangled up but I’m 50/50 on whether it’ll overcome in the next couple of years but I definitely think it’s possible. I put the comment in a reading time calculator btw and it says less than 1 minute

0

u/Rockdrummer357 1d ago

The harness plus tests which enforce code style, architecture boundaries, keep file and module size reasonable, and prevent anti-patterns. You can also use tools for cognitive complexity, etc.

51

u/shoxwut 2d ago

For what it's worth, I'm currently taking jobs to de-sloppily websites that clients have either paid for or vibe-coded themselves. There are a lot of small companies who have fallen for the trap of believing they can build or maintain something themselves despite having absolutely zero knowledge of what Claude is actually doing.

For how long this lasts, I certainly couldn't say, but it's quite a fun job and change of pace if you enjoy problem solving.

11

u/pippin_go_round 2d ago

Where the heck do you find these customers? I just see these sites pop up, but never get reworked. 

1

u/gen505 1d ago

Where do these jobs appear might I ask? What part of the world are you in?

9

u/the_ai_wizard 1d ago

Also CTO/engineer, 20+ years, and agree. I just developed a few systems, and was reflecting about how the UI is absolute slop despite me trying to correct, and, the code is spaghetti of old.

I think we must reduce the scope of each agentic run, which removes a lot of the efficiency of saying "execute this broad plan".

When we write code ourselves, it is with surgical precision. When an agent does it for us, its like a firehose, hard to hold and focus it. consequently you also end up with lots or little bugs that may be very critical and yet obvious to a human.

there are better analogies im sure, and we are certainly not the first to agree here. not convinced this is the way forward... its like kind of a floor for the lowest quality software a company can produce, unless they were outsourcing to india or somwthing.

3

u/hike_me 2d ago

Did you vibe the whole thing or actually apply some thought to what you’re telling the LLM to build?

5

u/svvnguy 2d ago

I got a similar question earlier, so sorry if I'm repeating myself, but IMO if I have to be more specific than I already was, then I don't see the point. I can describe a program better in code than I can in English.

Also, I get the sense that not everybody read the whole thing. I know LLMs can generate good code, and I know how make them write it. What I'm highlighting in my post is a limit that I've hit.

12

u/im-a-guy-like-me 2d ago

I am currently building greenfield after an attempt at the deslop. I ended up convincing them that their vibecoded mess was actually their prototype and that we could now take all the lessons they (didnt) learn and build their actual product.

5

u/something_miata 2d ago

The execs and managers don't care. They never cared. They always just wanted cheap, damn all other consequences. And now that there's a machine that does your job fast and cheap without complaining, they can have what they always dreamed of.

5

u/Slyvan25 16h ago

I've actually seen job applications with titles like "developer that will own the codebase and fix our supabase" aka they've used ai with supabase and now the entire database is nuked in production.

They boasted about how they had their own internal systems... Written by codex and claude

9

u/retro-mehl 2d ago

Shipping trash always was the way to go. At least in the minds of managers.

22

u/audioen 2d ago edited 2d ago

I agree that LLMs do not write clean code. But I disagree on the impossibility of making them write clean code, and also on the time tables. I guess it really depends a great deal on the details -- and everyone's experience is a little different.

I do not experience LLMs making me slower. On the contrary, the absolutely insane velocity of producing tons of well-documented and fully tested code is a brand new experience to me. I have had to cut on testing and documentation all my life because keeping all that going is like triple the workload, so my approach was "I hope I make no mistakes". Which is embarrassing when they happen, but it was also the only practical way I ever got stuff done fast enough: as soon as one thing was done, I had to move on to the next thing, and the first draft of any feature was good enough for production.

When LLMs shit the bed, I'm telling it: "don't do this, fix that" and then put it into the coding guidelines also. And that way, the LLM knows to avoid the bad thing the next time. You shoot problems down one at a time, and eventually you find that out that after top 10-20 are no longer a problem, the rest is pretty okay.

So maybe you read this and think I'm a shit developer. It is a plausible reading. I have been able to deliver lots of what I think as fairly intricate stuff over my time. I'm glad to let LLM take the wheel and do stuff, because not only does it design the feature, it writes it, then tests it, documents it, and the way I've arranged our tooling also allows it to deploy it. It can do everything, and all I have to do is make sure that the basic approach is sound.

0

u/stumblinbear 2d ago

Developers seem to forget that Claude is just another piece of software that you have to learn how to use properly and that you have to "program" it correctly for it to function how you want. Every failure you see is one you can correct. Models these days are extremely good instruction followers, which can be a detriment if you aren't careful with your skill writing

2

u/Otherwise_Eye_611 2d ago

I don't understand. How did the slop end up there in the first place? These tools can produce slop but we as devs are still the arbiters of quality; the slop shouldn't make it in.

Now if we're taking on an existing codebase, I've dealt with enough messes to know slop isn't new. Slop and mountains of technical debt are usually a product of tight timescales/bad working practices/developer churn, I don't see how that has changed.

4

u/Weekly-Dot7638 2d ago edited 2d ago

Easy. It got there when execs decided I couldn’t review MRs because AI was so amazing we should be happy to still have a job. Then proceeded with firing some of my colleagues.
Anyhow… that’s how. Anything that completely automated reduces in quality. This has been the case since the industrial revolution at least…

1

u/Otherwise_Eye_611 2d ago

That sucks, and thank you, I wasn't trying to be pedantic. It makes sense that the degradation is coming from business requirements and non dev execs. They sound special. I agree with you on complete automation, it's folly.

0

u/riddymon 2d ago

☝🏾Nailed it 👏🏾

2

u/Weekly-Dot7638 2d ago

Easy. It got there when execs decided I couldn’t review MR because AI was so amazing we should be happy to still have a job. The proceeded with firing some random of my colleagues.
Anyhow… that’s how. Anything that completely automated reduces in quality. This has been the case since the industrial revolution at least…

2

u/GalumphingWithGlee 1d ago

It gets in there when higher-ups are so enamored with the speed of AI that they don't allow enough time for humans to adequately review it all. Humans cut corners as necessary to meet deadlines, and one of the big ways they'll do it is by skipping review, or doing sufficiently cursory reviews that they aren't able to catch and/or fix the problems.

-1

u/svvnguy 2d ago

How did the slop end up there in the first place?

It put it there when I told it to implement the spec.

2

u/Otherwise_Eye_611 2d ago

Then you aren't reviewing what is going into the codebase? Isn't that a you problem? How is that not the same as letting any developer push any old code into a codebase without review?

2

u/svvnguy 2d ago

How could I review it if it wasn't written yet? The AI wrote it, I reviewed it, and it was bad.

1

u/Otherwise_Eye_611 2d ago

Idgi, did it build the entire project and then you're reviewing the entire implementation and still digging through it? If not then surely you would catch these issues at each implementation stage.

2

u/svvnguy 2d ago

I broke it into components and had it implement them separately. I suppose I could have done it in a more granular way, but at that point I'd rather write it by hand than specify the whole thing in English.

2

u/throwawayacc201711 18h ago

Sounds like you have a poor AI workflow more than anything

1

u/choeger 1h ago

Could you give some examples for the kind of problems you encountered. I am still reviewing "my" code and that of my peers, but I don't have the feeling of it getting out of hand.

Forced complexity, yes, because it tries to navigate corner cases that have no right to exist or because it misinterprets the priority of requirements. But outright anti patterns? That's surprising.

1

u/svvnguy 42m ago

Yes, for example it adds way too many levels of abstraction. You end up with a function that concatenates a named constant with a string, which gets called by a proxy function, and the named constant could have easily been a literal because the final function is the only thing that accesses it.

It also tends to over-use paradigms that it observes in the code, even tho they make no sense where they are being applied.

1

u/choeger 40m ago

That last sentence rings a bell, I've seen that too and couldn't put a finger on it. It's not a massive issue here because our codebase is often very young, but I've clearly seen it.

19

u/budd222 full-stack 2d ago

I have a feeling it's a bit of a skill issue. If you take the time to plan out the feature with the llm, set up skills, give guard rails, have it research your codebase for existing patterns, etc, it generally does just fine. I don't think you're taking enough time in the planning phase. I spent 3 days planning out a new and very complex feature with Claude. It touches so many different parts of the application. It did it almost flawlessly.

3

u/Laicbeias 1d ago

I think its not so much an skill issue as it is a pattern one. Sometimes for certain complex code, that isnt well represented, it just produces something that looks good, hits the tests. But it will not cover all edge cases and if you use it daily you will run into issue after issue after issue.

It always looks like it works though. Which makes it so annoying.

Planning itself helps. But.. if something is really complex, i have not once managed to plan it out. You think you can but you cant. Its always explorative and iterative work. Because thats what complexity is. Folded pockets that you have to step into to even realize they exist.

Edit: we in webdev nvm. Skill issue

0

u/budd222 full-stack 1d ago

That hasn't really been the case for us. It was in the beginning until we refined our process over and over. I would recommend a TDD approach. But at the same time, humans don't usually catch all edge cases either, so I'm unsure how that is different?

1

u/Laicbeias 1d ago

web dev? I dont want to shit on web im one doing it for 26 years. But its largly solved for a while now and AI has massive amounts of training data. There i genuinly never had any issues with LLMs.  Its more in gamedev, statistics or system level code, when it just does not seem to hold a blueprint. The issue is you do not know what data it has and at what resolution you work. You cant do TDD in these areas since you usually work be try and error and measuring

-1

u/Absulit 2d ago • Bravo

20+ YOE. Skill issue. Yeah sure.

You know it deep inside you are lying to yourself and it's in the last sentence "almost flawlessly". You get a semi decent result and then you lie to yourself about that 10% that never works.

4

u/Boring-Leadership687 2d ago

Nothing is flawless not human code or ai code or anything else in existence

2

u/budd222 full-stack 2d ago

Skill issue using AI. They don't have 20 years experience using AI properly, clearly.

3

u/spikestoyou 2d ago

The runtime is the QA environment for AI. That is basically what I am seeing.

3

u/CrashXVII front-end 2d ago

I think sadly lots of places will be ok with shipping trash. When it starts biting them, then the answer will be to spot fix it with more AI.

It’s too hard to untangle and point at the exact ways that AI botches it. Like reviewing AI PRs, it “works” and seems plausible. Can’t help but “feel” something is off but can’t point to anything except “the entire vibe of the PR”. But that’s not actionable feedback. The core issue is no one is working through and sitting with a ticket long enough to get a true grasp on the bigger picture. So we get all these small puzzle pieces that look right on their own but the whole app put together has all these tiny misalignments.

3

u/FahadAppMaster 2d ago

I had the same thing with a Flutter app last year. I let the AI scaffold a few screens, then spent longer untangling its state handling than it would have taken to write the screens myself. Now I only use it for small, isolated helpers I can review in one pass.

1

u/winky9827 2d ago

Whenever someone brings this subject up, I think it's important to consider perspective. Is the code objectively trash? Does it not work? Does it not test correctly? AI may not write code like you do, and it may not even always follow your code style / conventions. But most of the larger modern models can write perfectly functional code without much hand-holding.

I suspect, then, that claims of this nature boil down to one or more of the following:

  • You don't like the code, either because it's not in your style, or because you don't trust the LLM's output
  • You don't want to like the code, because that would be admitting the basic competence of the model.
  • You're using the model in a way that encourages bad code. Either your system prompt, your agents.md file, or other harness issues are preventing your model from operating optimally.
  • You're using an outdated, under-trained, or ill-suited model for the task.

2

u/svvnguy 2d ago

Does it not work? Does it not test correctly?

This is not enough. I'm writing a library that I hope people will want to use.

It needs to be readable, and it needs to make sense.

1

u/winky9827 2d ago

Then you write the docs, the contract, and design the public API, let the agent fill in the rest. It really boils down to public vs internal, and how much you want to polish the public part.

4

u/TornadoFS 2d ago

The thing is to keep the quality standards of before-LLM work you need to use LLMs in a way that only give 1.5x speed up for most tasks*. Constantly checking output, going back on forth on different implementations, etc. Compared to full-on vibe coding which can give you 10-50x speedup at least for a while...

* LLMs provide a lot bigger speed ups in some tasks at much smaller quality cost like writing tests, or codebase searching, debugging, etc. Documentation to some extent too (but to keep it sane you still need to clean up a lot).

2

u/Lonely_Nectarine_742 2d ago

matryoshka spaghetti is cursed imagery

2

u/gHHqdm5a4UySnUFM 2d ago

I think it is possible to use AI to reign in the duplicate code and anti-patterns but right now there is no willingness to slow down and actually do it. Management wants fast and cheap, they want to see how many of us they can fire before they see a real production issue that can’t be solved by more slop.

2

u/Variumcode 2d ago

I use these tools daily and i agree with the reintroducing the same problems part, that one drove me crazy too

what changed it for me was stop letting it decide structure. i keep a rules file in the repo (patterns we use, what not to touch, how things are named) and every time it repeats a mistake the fix goes into that file instead of just fixing the code. after a couple weeks the same WTFs mostly stopped coming back

also smaller tasks. "build this feature" gives you the matryoshka, "add this endpoint following the one in X" is usually fine and quick to review

but yeah the idea that you keep one lead and fire the team doesn't match what i see either. somebody still has to know why the code is the way it is, and reviewing generated code properly is real work

2

u/Basic-Lobster3603 1d ago

I'm so tired of all the slop that exists on a greenfield project. that has been pure vibecoded. Any sort of potential guiding AI to better practices is seen has too hand holding. You should let it explore the issue first and interrogate it to get the best result :/. I don't think I have seen a PR under 5000 lines of change in the past couple of months. because the entire point now is long running large agent workflows, which I don't think works at all and smaller scoped work that an agent can turn through quickly seems to be better then these giant multi day long implementations. There is currently a PR open that I may refuse to merge that is 1 million lines of change that was fully vibed including the rebasing on master branch pulling in every regression issue under the sun.

1

u/HongPong 1d ago

horrible!

2

u/Ok-Let-7933 1d ago

I think this is an important point that many companies are overlooking. AI can generate quickl, but fixing poor architecture, bugs, bad codinng practices can take much longer. Replacing developers might save money initially, but maintaining that codebase could become a much bigger expense later.

2

u/xpusostomos 1d ago

What sort of app, because if you're writing a web page in a particular framework, there's only about one way of doing it. When you're writing something with no precedent, that's where you run into trouble and you've got a lot of work ahead. It helps when you have a WTF moment to carefully write it up in AGENTS.md not to do that again. It's not perfect, but mostly it stops it happening again.

2

u/Gornius 5h ago

Whenever you put one issue away, a new WTF is revealed.

Perfectly sums up my experience with LLMs.

They are useful, but in places where slop is acceptable and/or virtually impossible to produce: Single-use mini-scripts, plumbing for tests, glue code.

To produce actual maintainable and clear code with LLMs, it takes roughly the same amount of time as typing it manually, with the difference that doing that with LLM feels like banging your head against the wall every other assumption it makes.

5

u/readeral 2d ago

I thoroughly agree. I’m 4 years into a project that I’ve largely been working on alone, and while it _seemed_ like year 3 brought a lot of iteration and quick wins, I felt freed up to think about architecture and UX, now I’m at the point of delivery (or should be…) I am painstakingly unpicking and refactoring some of those key wins that turned out to be overly complex and failed to leverage the platform I’m developing for. But more than that, I’m thoroughly blocked by some of those key things I had AI help me architect. AI might be fine with React projects or building libraries that mimic other libraries or already have full api surface areas defined, but full stack applications built on unpopular technologies? (In my case Salesforce) It’s a dog’s breakfast.

→ More replies (7)

3

u/nuttertools 2d ago

The critical piece your evaluation is missing is revenue. For every 1 company dumping landmines in their basement there are 10 where shoveling shit is the optimum profitability model. The dynamic isn’t new, it’s just more visible with modern tooling.

Ultimately the entire question is one of management competence. The wrong balance of talent on a project allows disasters to get much worse before becoming apparent to out of touch management today than 10 years ago.

3

u/djnattyp 2d ago

I don't know that the numbers match up here... it feels like a slot machine. It could be closer to - for 100 companies that generate slop that no one wants, there's one company that hits the jackpot and generates some definition of something profitable. And every manager and CEO is ready to take a pull on the one armed bandit for that. They're just gambling the imaginary money of the company (and worker's time, sanity, and salaries) and can blame some underling for the failure or hope to ride a golden parachute to another host company.

1

u/nuttertools 2d ago

That would be a subset of the 10 companies where shoveling shit is the better business model. It’s impossible to determine real world numbers but my estimate would be 1 of those 10.

Ex.
1 - Well run business maintaining reasonable growth with highly qualified management and general staff.
2 - Large successful business speedrunning bankruptcy. Low management load, no competency required.
8 - Business constantly pivoting and reorganizing pumping out short-lived garbage. Very high management load, very high management competence required.
1 - Business randomly hitting it big by throwing shit at the wall. Low management load, no management competence required.
9999 - Startups and financial instruments with zero business purpose. 0-10 incompetent employees desired.

2

u/djnattyp 2d ago

I kind of feel like those 8 are really just in some "Schrödinger's business" state between the others, still trying to be the 1 that "wins big by throwing shit at the wall." I don't see those 8 as "high management competence required" - it really just requires lots of hubris, bullshitting, stepping on people, and pushing those under you into burnout. Though those do tend to be desired management skills...

1

u/nuttertools 2d ago

Those 8 are successful businesses who are not at all throwing shit at the wall. If they happen to see a golden goose they don’t wildly grasp but carefully consider the risks. If it’s a management team running on hubris and burnout they don’t become part of that cadre, they fail either to bankruptcy or “up” to a buyout before fleeing the scene.

3

u/feketegy 2d ago

Whoever wrote more than 5 lines of code knows this.

This is not about AI being good or bad for software development.

3

u/sleepy_roger 2d ago

This is a skill issue. 

3

u/PerformanceThick2232 2d ago

There are 2 types of people, first with expertize and second with not. Only second push narrative that llm code is good and like that; and first are knowing code is shit.

1

u/stumblinbear 2d ago edited 2d ago

I've been writing code for 17 years. LLM code can be very good if you set up the right workflow and skills, and keep an eye on the decisions it's making.

Just asking bare Claude Code with no tuning to your preferences at all will get you a hot steaming trash heap

Edit: lmao, they asked for an example then blocked me immediately so I couldn't actually give an example. Classy.

2

u/[deleted] 2d ago

[removed] — view removed comment

1

u/webdev-ModTeam 1d ago

This is a subreddit for web professionals to exchange ideas and share industry news. All users are expected to maintain that professionalism during conversations. If you disagree with a poster or a comment, do so in a respectful way. Continued violations will result in a permanent ban.

2

u/Pastetooth 2d ago

Most models don’t even write code best on max mode.

There is a reason the recommended mode is often lower and the model producers publish articles justifying their recommendations.

2

u/Busy-Stand-3066 2d ago

when manager demands slop then we go slop

whenever I missing code by hands or carefully AI written code I go with personal project

1

u/dphizler 1d ago

Agreed

I hate the idea of going fast because everyone else is writing slop. My new management is now a little too proactive to step in to try and improve processes. Trying to optimize everything probably won't generate the desired effect

1

u/Miragecraft 1d ago

Yes takes more time and money, but it could be worth it to have a business up and running and generating revenue.

It doesn't matter if it costs more if it pays for itself.

1

u/Happy-Ad-1359 1d ago

The part that stuck with me is the review cost. Reading generated code takes longer than writing it because you have to rebuild the mental model of code you never wrote — and unlike a junior dev's code, you can't ask the author why they made a choice. So every weird decision turns into a full investigation instead of a quick question.

1

u/Reasonable-Fault2687 1d ago

All true.

But I don’t see the big problem that others do with the crazy bad software being pumped out. That’s nothing new. Software has always sucked.

Now there’s even more bad code we’ll be hired to fix.

1

u/Full_Tooth_a 1d ago

Before you publish the library, I'd start from a fresh checkout and time a small API change, including the time it takes to check that an existing caller still works. I'd compare that with a similar change in a handwritten part of the library and include senior review and cleanup in both totals. If the generated code saves typing but review eats up the time you saved, cutting the team leaves fewer people to do the part that now takes longer.

1

u/abdo_abusleem 1d ago edited 1d ago

The expensive part of reviewing AI-generated code isn't usually the syntax. It's figuring out which guarantees the code is supposed to preserve. An endpoint can look perfectly fine until two concurrent requests modify the same record or a client retries a payment request. Without proper transaction boundaries, idempotency, or database constraints, those bugs can survive a surprisingly thorough code review.

The problem is that reviewers often have to reconstruct the business invariants before they can even evaluate the implementation. Making those invariants explicit in the domain model, database constraints, and tests makes the code easier to trust and cheaper to change, regardless of who or what wrote it.

1

u/OpenRole 11h ago

I had a prompt that had AI deslopify it's code base. It worked really well, but it used a shit ton of tokens and anything less than 6.1 Sol just wasn't able to do it.

I imagine it would take even longer on a bigger codebase.

In a nutshell I just made it implement the Gang of Four OOP patterns aggressively.

1

u/boer0327 9h ago

the hidden cost is that seniors end up spending all week untangling subtle state bugs instead of designing systems. paying senior rates to babysit messy diffs makes zero sense.

1

u/Rusty_Raven_ 2d ago

Deslopping is a waste of time.

If you're using an LLM to write your code, then you don't need to edit or control the code - just control the LLM so that the code does the job. That's literally all you can do.

If you're using an LLM to help write your code, then absolutely edit the hell out of it.

If you want an LLM to write beautiful, well formatted, well organized, patterns-compliant code, then you might as well just write it yourself. It's faster, you maintain code style and quality, and it's more satisfying.

There is literally no upside to forcing an LLM to output the code you would have written yourself.

1

u/DealDeveloper 1d ago

Incorrect.

. Provide prompts regarding the code to an AI agent
. The agent writes the code in the language of your choice
. Immediately pass the code to (custom) SAST/DAST tools
. Use the output from the tools to create prompts
. Pass the output and code back to the AI agent

This way, I am able to automatically prompt the AI agent to write code correctly.
Try the same exact process with human developers and it will cost a LOT more.

1

u/Rusty_Raven_ 1d ago

Incorrect (great attitude, by the way - opinions are subjective).

The machine executing the code doesn't care what it looks like (which is why minifiers and obfuscators can work), as long as it's valid.

Code formatting is for humans, agents don't care what it looks like, as long as they can parse it.

So if you're using an agent to write code that doesn't need to be edited or reviewed by humans, there is no point wasting time or tokens on any kind of formatting that isn't directly related to how the language interprets the code. Desloppifying is for code that needs to be human-readable. It's perfectly fine to have ugly-ass code if the only thing reading it is a machine.

OP is wasting a LOT of time on something that doesn't need to be done - either forcing the LLM to write beautiful, human-maintainable code, or using an LLM at all when writing it by hand would be twice as fast.

1

u/carloselieser 2d ago

Couldn't have said it better myself

1

u/xXConfuocoXx full-stack 2d ago

Code reviews, TDD, split purpose and small managable PRs are your friend when it comes to AI generated (or really even human generated) code.

I think more than anything AI code just highlites bad human practices. You have to build and enforce a rigid structure based around solid principals (solid is a double entendre here) if you want good maintainable, scalable code

0

u/Ok-Snow-6553 2d ago

I feel this. AI can spit out a basic prototype pretty fast, but the code is usually so redundant and unreadable that I just lose all motivation to even look at it.

The worst part is fixing bugs. If you don't give it very strict boundaries in your prompt, it'll fix the one bug but completely break other working features in the process.

So honestly? I don't even read the code anymore. My workflow is just: let the AI generate it, run local tests to make sure nothing else broke, and only then do I dare to git push.

0

u/Desperate-Sorbet-994 2d ago

The 'could have finished in less than a week' is the part I'd want to see evidence for. Estimates of work you didn't do are always cheap, the three weeks of actual cleanup is the only number you've got.

0

u/godofleet 2d ago

simple solution / tl;dr: don't deslopyify, just accept that it's all slop and get better at mitigating / preventing the really sloppy stuff...

the true-true is that we've all always had slop in our codebases doesn't matter if a human or robot wrote it, what matters is how we deal with it.

The reality of this type of code is that for anything remotely complex it's absolute garbage, and requires enormous amounts of time to correct because it's broken in multiple ways at every abstraction level.

It all boils down to planning well from the start and continuously maintaining and referencing that plan (a separate document outside of context windows that get compacted) - doing so avoids the issues at "every abstraction level" in my experience

If you start from the foundational stuff, have it review feasibility, precise/effective solutions, build reproducible samples/tests etc, and YOU chose how each layer will be built- Claude (at least that's most of my experience) can be really good at building large complex things while keeping the individual components sane and aligned with the plan.

As you build with it, at every commit (sometimes more often) have it review/compare the plan, active memory/context and product/feature progress... this largely mitigates any hallucinations/regressions. you can even prompt it to intelligently KISS and literally saying just that will often put it on a better track (but being precise and clear with it is almost always best if you're really looking to avoid slopiness)

if it does find stinky / off plan issues, plan and build the fixes closely with it to ensure it's not derailed... then repeat the review plan/context/product pattern.

it feels like every voice of reason has flipped in the recent months

because not only did the tools get WAY better in the 2026, we're using them differently (but i think more effectively) than before.

0

u/rascal3199 2d ago

The developers who make slop with ai, made even worse slop before Ai. Especially now with how much it's improved. If a dev cannot read AI output and understand it's slop, then imagine what they were writing before by hand.

I genuinely feel like the people who are still making this argument have not seen how much ai has improved.

0

u/crimsonvspurple 1d ago

Skill issue.

0

u/Square-Yam-3772 1d ago edited 22h ago

"Like every voice of reason has flipped in the recent months and I am not sure why"

Model updates? We are at a point where AIs are decompiling programs and are posing serious security risk via hacking

You are shoving the same old talking points like "AIs cant handle complex code" like it is 2024...

Maybe watch the news sometimes...

EDIT: for those who are not convinced, just get hold of one of the frontier models and do some tests yourself. People like OP can't read the room because OP is either no-AI or is using some free tier model (he claims he is on max plan but it is BS if he didn't notice anything different for the last 6 months)

2

u/HongPong 1d ago

fishing out bugs and architectural decisions are very different

1

u/Square-Yam-3772 22h ago

do you have an example of the current generation model failing to make the right architectural decisions for one of your projects in 2026? we are still talking about web dev, right?

-2

u/sreekanth850 2d ago

People do what works for them. If LLM didn't worked for you just move on without one.

3

u/tanega 2d ago

People, maybe. Companies, they just want to keep shipping features.

0

u/sreekanth850 2d ago

Thinking humans are superior in coding compared to frontier LLM comes from insecurity. Without knowing how OP build with AI, no one can come to a conclusion. Even if he is 20 Year experienced, he is fresher in LLM assisted coding. That is how it works. Mostly human developers who coded for a decade had their brain wired to certain predetermined workflows and patterns which can be detrimental for LLM based workflow.
We are a team of 3 with 2 developers (10+ years) and 1 AI assisted coder. Our code based is tightly engineered i had seen multiple issues with human shipped code on AI based audit and all of them are acknowledged by the respective members.

1

u/DealDeveloper 1d ago

Yes;
Clear, concise, instructions with the correct context works.

The easiest way to prove you are correct is to hire a $3/hr dev.
Compare the AI agent's results against the human dev's results.

Given clear enough instructions for a cheap dev, the agent wins.

-2

u/abeuscher 2d ago

I'm so genuinely confused by these posts because I believe you - but as someone with a similar level of experience I am not bothered by the generated code in the slightest because the code is an artifact.

If there is a concern about security problems I understand that entirely. But if the issue is that you like some patterns and don't like others - why are you continuing to fight that battle?

I know lots of engineers are snarky assholes. I am really not, and I do not mean disrespect with my questions. I don't really get it.

I guess what I mean is - when are those anti-patterns going to be a problem? When is code that isn't up to spec going to be seen, and if it is, what specifically are the implications of it?

I think when I ask questions like this other seniors treat me like I am stupid or I must write terrible code. Well - people tell me I am smart for whatever that is worth I don't know I can self report on that I've been inside this brain for my life and so far I like it here. The code I wrote for many years passed review when that came up. It wasn't earth shattering stuff but it worked.

If AI and LLM's are in charge of code now - which seems to be the case in many shops and increasingly so - what is the consequence of "bad patterns", poorly written code, etc. if we are hands off of it at this point? To me it sounds like you are complaining about the way a compiler optimized your code in a way you don't like and you're in the weeds about it. But hey - I am guessing I am wrong or that your point is better than that because you seem smart and genuinely concerned about this.

So - what happens? I have cleaned out tech debt before. It seems to me that LLM assisted tech debt cleanup is blazing through the backlog in many places. It also seems to me that if the concern is specifically security related - we better be using LLM's because that is what we are racing against and in that area of the field they are clearly winning.

So - what happens if your job continues on like this in your mind? Does the product suffer? Does that affect the bottom line of the company? Do stakeholders become upset? Do shareholders lose money? What is the negative business consequence of this? Where does it lead that concerns you?

Would love an answer. I wish we were like at a bar or something so I could do a better job proving I am not trying to troll or whatever. I am outside of the workforce right now so your perspective is of value to me in this.

1

u/DealDeveloper 1d ago

"Would love an answer."
Use tooling that maps the code and automatically prompts AI agents.

Your comment takes the position that willful ignorance, technical debt, poor communication are all OK in codebases. Instead, review quality assurance best practices and automatically prompt the AI agent to write the code in a way you can easily understand it (and explain it).

For example, look at some Perl golf examples (assuming you are not an expert Perl programmer). An AI agent can be prompted to rewrite that unintelligible code so that you can easily understand it . . . and even rewrite it in your favorite language.

This helps you avoid technical debt, maintain the code, secure the code, and avoid bugs.
It costs some extra time, BUT I wrote enough tooling to process it while I am sleeping.
It does not matter much for a static brochure websites, but it matters for financial tech.

Going further, AI agents can help you write code that meets strict regulatory standards.
Your comment overlooks compliance standards altogether which may hurt the company.

1

u/abeuscher 1d ago

It seems like you're angry. I'm sorry I didn't mean to make you angry.

I do not feel as though there is willful ignorance here and I do not think technical debt has the same causes in this paradigm that it did before. Systems change is made much easier by LLM's. I am pretty sure everyone agrees on this. And if it is the case, then I have a lot fewer concerns about compatibility between services which is a lot of what drives technical debt. If a package is upgraded and the app sees this and updates to accommodate that - isn't that better than it was before? Isn't that exactly not technical debt?

Maybe I am not getting it but I assure you I am not embracing willful ignorance any more than you are by not reading the machine code underneath your higher level languages.

And it seems to me that unit tests and pen tests are already how we maintain secure code and again - are better run by LLM's than by humans both for thoroughness and frankly they just don't get bored like we do.

I'm just trying to understand this POV and it's not clicking for me. To me it seems like everyone is being very precious about knowledge that is now ubiquitous and has lost value as a result. Help me understand why I am wrong. Please hear that I am not a kid and I am not being deliberately ignorant I am looking at this process that seems so prone for automation and wondering why everyone seems so against automating it.

What are we losing here? Is the indeterminate nature of LLM's so problematic that we can't see that they are better at sec testing than we ever could be? And listen - I have been given really expensive security audits and had to lock down apps like crazy for them. I am not talking out of my ass on this either. I might be wrong but I am speaking from a place of some experience on all of this.

-1

u/Lyelinn 2d ago

> The reality of this type of code is that for anything remotely complex it's absolute garbage, and requires enormous amounts of time to correct because it's broken in multiple ways at every abstraction level

this just means that you have no idea how to use this tool and should rethink your approach. I'm pretty sure that Opus 5.5 writes better code than 90% of today's developers, fable would bring even higher by few percents

All these posts I've seen are like a template: all made by someone stuck in the past working on some absolute generic stuff like wordpress shop websites and never actually worked on something more complex than crud+basic business logic. Time to learn to let go and learn the new tools because they're hereto stay anyways and c-suite will force everyone to use it; and if you're a freelancer your competition will use it anyways

Just as a hint, FAANG, oAI, Ant, Gemini and all these labs are using ai to work on everything from their frontend to their inference engines

-2

u/Standard_Scarcity_74 2d ago

Another hopecore post. These realizations come late for many because they ship it as long as it runs. I see this happen all the time, so many have lost the passion or will to code because AI kept being shoved down their throats that shipping trash and figuring it out later became routinary.

-2

u/bzbub2 2d ago

dumb thread. you were in charge of the model the whole time. you let this happen. if that choice includes not using the smartest model available to you, thats also on you because your time that you claim you will now spend 'cleaning it up' is time wasted

0

u/graph-crawler 2d ago

It's a well known knowledge, big renovation is costly and takes longer vs building from scratch.

You need more token to diff, to plan, to remove, and to rewrite

0

u/saltyourhash 2d ago

It depends how bad the code is and the codebase size, but s full green field can be faster at times, yeah.

0

u/thejestercrown 2d ago

Rewriting is a hard sell.  Starting from scratch is expensive short term, and the customer gets very few tangible improvements, if any (e.g. no new features/functionality). So you have to make the case that it will save money long term… will it actually be cheaper to support (e.g. cut staff), have less downtime, increase ability to add new features?

Replacing legacy gets complicated for business critical software. Challenges are seamless migration/cut over to prevent interruption to business activities. Unknown features that come to light late in the project, or [even worse] after launch. 

Software is generally not the product, and just increases operational efficiency (e.g. software is usually overhead). It has value because you can do more with less. So the question becomes is it financially worth rewriting? Sometimes it’s not even, when it’s a nightmare to support.

Also, something that would only take a week to rewrite is nothing- that should be easy to sell, and you could do it in parallel while supporting the existing legacy code base. Either a communication problem, or possibly they’ve been burned in the past by someone underestimating how hard replacing the legacy code would be. I wouldn’t tell them a week, but I don’t know what you’re replacing either.

-2

u/bendem 2d ago

From my experience, LLM are only bad when they are missing harness, memory and context. We went with Claude code for harness with a custom container as a sandbox, Serena for memory (the symbolic tooling is a plus) and a bunch of organisational skills (patterns, local infrastructure, conventions, decision trees) and written specs in the project.

With that, it's generally a matter of encoding facts that the ai didn't yet know about. Or making business decisions during the brainstorming phase.

-6

u/livingFaithGame 2d ago

sounds like a user skill issue tbh.

if you're a bad PM, your team will produce shit work - doesn't matter if they are AI agents or humans - the results depend on the project leadership

-3

u/GoodishCoder 2d ago

I don't experience this issue at all when I give proper prompts and context up front. When I was on the AI COP 100% of the developers struggling to adopt the AI tools we were providing, were horrendous at prompting. They were all either giving too big of a problem instead of breaking the problem down and giving AI the pieces, or they were giving no context and just telling it to implement.

-3

u/Primary_Article3777 2d ago

From the desctiption you gave, you are simply amateur at using these tools. You don't keep your foot on the gas from start to finish. You implement. You do critical reviews, and simplifications. You prune. You're a bonsai gardener. I think you treated this process like dumping sacks of flour into a bread machine and waiting for the loaf on the other side.

Your language also gives you away as someone very hostile to the change. Sorry.

2

u/the_ai_wizard 1d ago

spoken like a true bootcamper

-1

u/Ok_Woodpecker_9104 2d ago

the reintroducing part matches what i saw, the rules you give it at the start of a session fade as the session gets long and it drifts back to the patterns you told it to drop

what helped me was a hook that blocks the first file edit of every prompt until the rules get loaded again, so they are fresh right before it writes code and not only at the start

compaction is the other one, the summary gets the tail wrong more than you would think, i counted 4 out of 7 where the last edit was listed as not done, so it redos a fix you already made

-1

u/Equivalent_Head_4803 2d ago

There’s always a tradeoff. You move fast and you get sloppier code. That’s always been the tradeoff. When AI was promised, we were basically told it would allow us to make things better but, as an industry, we’ve basically wielded it to increase output and not quality. That’s a major problem. The rate that companies were going was perfectly fine… maintain that rate of productivity but allow developers to increase quality and you’d have amazing software.

Yeah, I know why people think that can’t happen. It’s not just the CEOs and big bad boards. It’s every day developers too. Y’all are fucking lazy hacks with no concept of craft or pride in your output. Every industry has em.

-1

u/Sufficient-Storm3845 1d ago

so you're releasing it as opensource and calling it garbage in the same post. bold move for whoever inherits it.