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

670 Upvotes

242 comments sorted by

View all comments

0

u/Rusty_Raven_ 1d 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 12h 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_ 12h 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.