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!

769 Upvotes

267 comments sorted by

View all comments

89

u/Potatopika full-stack 3d 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

42

u/davidbasil 3d 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.

9

u/Due-Consequence9579 2d ago

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

4

u/sistersinister 2d ago

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

16

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 2d 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 2d 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 3d 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 3d 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 3d 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 2d 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 2d 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 2d 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.