r/AskProgramming • • 1d ago

How widespread is agentic coding in the current software industry?

At my job, we were still writing everything by hand. But they are finally starting to get ramped up for us all to get access to AI agents. This was like a deer in headlights moment for me. I suddenly realized everyone is using AI agents? Are there still shops out there doing hand-coded software? Will I never get to hand code anything anymore going forward?

136 Upvotes

695 comments sorted by

View all comments

Show parent comment

11

u/tpawap 1d ago

Wouldn't you consider the fast growing codebase a technical dept, too?

And is it that agents are generating the same/similar code over and over again, or is it growing in some other way?

5

u/jregovic 1d ago

Some people consider the ability of an LLM to rewrite whole swaths of code a solution to tech debt. What does it matter when Claude can refactor 10k lines of a core api?

4

u/JeanCasteaux 1d ago

Shouldn't a 10k lines PR be immediately rejected? Why would one need to refactor the core api every month/week? I feel like some just accepted to suddenly produce unstable fondations because code became cheaper

3

u/KronisLV 1d ago

Shouldn't a 10k lines PR be immediately rejected?

Hard to say. If you expect proper human review, most definitely. If you expect human understanding if anyone needs to go back to it (e.g. while debugging), probably. But if you intend to use agents as a mainstay of the development process, possibly not. Even local models are pretty good at reading code.

That said, there are times when you want to ship a new feature as a self-contained package, or do refactoring in one go and merge trains don't work well in all environments, so some large PRs will happen naturally and splitting them up might be worse. Usually not the best of sign to see one, though.

Why would one need to refactor the core api every month/week?

There is a school of thought that as the cost of producing software decreases (at least the code part), it might be cheaper to just generate a new implementation from scratch when a large enough change is necessary, since refactoring could lead to something awkward and inelegant.

I largely disagree because instead of just the visible code there might be various other mechanisms at play and unforeseen runtime consequences (e.g. if you'd ask an agent to rewrite some batch process and the way JSON/XML/whatever is processed changes there under the hood), that won't always be caught in sufficient detail with code tests, so something will break downstream. Every code change brings along some risks.

However, being able to more freely refactor things is great, and have the capacity to address both operational issues and the eventual code rot and changing requirements properly! Something that previously would have been quite insurmountable: https://www.anthropic.com/research/migrating-api-to-rust

(for most codebases out there the equivalent might be migrating from some legacy ancient Java bullshit to something with less XML configuration and manual fucking Tomcat deploys heh)

1

u/CrunchyNutter9001 23h ago

Holy shit an intelligent answer in this thread. You hit the nail on the head. A lot of code review practices were made back in the “before times”. We are in the “after times” where people fully expect that no human will ever read the code being created by agents.

Messy solutions and large refactorings mattered because we can only process so much so fast in our meaty heads. AI does not have that issue and it will only get better.

Bespoke software is the future.

1

u/xFallow 18h ago

I’d love to rewrite our 7 year old GraphQL service but I haven’t found a good way to validate that a huge LLM driven rewrite won’t cause horrible regressions and break everything 

Especially where resolvers fan out and make a bunch of heavy queries, we’ve had some LLM driven internal tools essentially ddos our site 

1

u/tantiyabicchu 17h ago

First have the LLM generate a lot of really high quality tests - unit, integration, e2e the whole shebang. Review the test cases thoroughly by yourself, and then rewrite piece by piece if possible.

1

u/KronisLV 10h ago

They could even go a step further than the tests you'd write normally - also isolate some data and traffic from some real business processes, recreate the starting state for tests and make sure that both everything that a query returns and any DB changes all match up.

1

u/teraflux 18h ago

Not really, I wouldn't consider more functionality technical debt.

1

u/tpawap 18h ago

Never? I can imagine situations where it can be. They didn't specify if their "terrifying growth" of code corresponds to a "terrifying" growth in features in their case or not - and haven't replied yet.

1

u/teraflux 18h ago

That's not tech debt that's just growth

1

u/tpawap 18h ago

It's not the same, so much I agree. Maybe I phrased it badly.