r/webdev • • 3d 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!

798 Upvotes

276 comments sorted by

View all comments

2

u/Otherwise_Eye_611 3d 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 3d ago edited 3d 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 3d 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 3d ago

☝🏾Nailed it 👏🏾

2

u/Weekly-Dot7638 3d 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 3d 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 3d 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 3d 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 3d 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 3d 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 3d 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 1d ago

Sounds like you have a poor AI workflow more than anything