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!

691 Upvotes

246 comments sorted by

View all comments

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.

-3

u/dbc001 1d ago

This is a really good point. The available documentation and code examples reflect the community and ecosystem of the frameworks used. I'm a decent engineer with 15+ years of experience, using AI to build software in Go, Rust, Python, and Postgres, and the results are really solid. I attribute this to the dedication and skill level of the people involved in those ecosystems. I would totally expect salesforce or wordpress code generated by AI to be diluted by human-generated slop that made it into the AI's learning phase.

1

u/readeral 1d ago

I'm not quite following why you got downvoted, but I think we're saying slightly different things. I can only anecdotally agree wrt wordpress, but you're absolutely right about human slop in the Salesforce ecosystem - mostly cut-cost consultants making changes to a budget (the 'just ship something that works' isn't new in the AI era!) - but most of that isn't public code that AI could have trained on. However, the docs and code examples available for the salesforce ecosystem are _incredibly_ fractured by their feature churn, constant product rebranding, and unsuccessful betas, and that means AI never gets enough of a leg up.
Products that are stable with careful iteration and thorough documentation (like your Go/Rust/Python/Postgres) or frameworks that have spawned a lot of open source code, like React and other things built on Node, do benefit from having the lions share of AI training data, I agree. But I think my point still is separate to available examples for training: AI excels where APIs are clearly defined first, both at the project level and at the platform level. Unless you're working on greenfield, (and lets be honest, most of us aren't) AI isn't the panacea the AI industry is touting it as. Greenfield benefits from being able to define those API constraints up front - and the sense I get is most people aren't doing that, but AI at least starts with some sort of default it's gleaned from it's training data, but once you get beyond a certain code base size and/or are combining technologies that require handling differently, that's when the mud gets too thick for AI to genuinely help.
It's no wonder that AI is being used really effectively to create a lot of small fast utilities or to rewrite languages/frameworks in Rust, and it's all down to the feature-complete deterministic constraints that keeps it aligned.

1

u/dbc001 1d ago

Yeah, I guess I kind of cherry-picked some of your points, and I would totally expect AI-only architecture to make some bad decisions.

1

u/bella9977 1d ago

Humans don't generate slop. Humans are not some "generative" robots. Shut up.

0

u/dbc001 1d ago

90% of what humans generate is slop. It's how we got 4 Non Blondes, reality TV shows, Wordpress plugins, Twilight, Wal-Mart, and modern country music. It's why nobody listens to the majority of music on Spotify, and nobody watches most of the videos on YouTube.

If you've ever had a real job working with code, you would know that most of modern software is held together by duct tape and dumb luck, and that almost nobody knows what it actually does or why it does it.

1

u/bella9977 16h ago

This is the dumbest delusional take ever. Why don't you put an AI chip in your head so that you don't generate any more "human" slop.

1

u/dbc001 12h ago

What kind of human-generated content is mostly high quality? Name a genre of music, a type of video, a style of writing, a kind of artwork, where if I pick 10 pieces at random, you and anyone else around you will want to fully and deeply engage with most of them. See if you can do it without ad hominem attacks or emotional clapbacks.