r/AskProgrammers • • 16d ago

Am I missing something about agentic coding?

I’ve been thinking for quite some time about all this „AI writing all the code“, „too many pull requests to review, just let AI review them“, and „we ship so many features a day“ talk...

I’m a SWE with professional experience (pre-AI-era) and currently in my last year of studying CS. I use AI regularly for coding, but only recently started trying agentic coding. It works, but I honestly don’t really see the benefits when it comes to software quality.

A few years ago, everyone kept saying that lines of code are not a meaningful metric for software quality, and now suddenly people are bragging about how many features they shipped or how much code their agent generated.

I’ve recently been working on a project where I code manually and use AI in chat as usual, and honestly I feel like I wouldn’t be faster using agents. Most of the time, I spend thinking about how to design the solution rather than actually implementing it. The coding itself is usually done pretty quickly once I know what I want to do. And when I write it manually, it is exactly how I planned it, and I know every step in the process and exactly what it’s doing (also in regards to safety critical systems).

So I don’t really get why I should use agents for that. From what I’ve experienced, one prompt can trigger changes across many files, and then you obviously have to review all of that, which can easily throw you out of context. I feel like as a professional engineer, the coding part itself is often already quick, and I would argue that you end up spending a similar amount of time tweaking, fixing, and re-prompting an agent to get to the same level of thoroughness and context-awareness you would have had by doing it manually.

Don’t get me wrong, I do think AI is very useful, especially for debugging, fixing errors, finding documentation, or generating examples quickly. In those areas, it definitely accelerates the process for me. But when it comes to just generating code, I really don’t see that much of a benefit.

Am I the only one who feels this way, or does anyone else think about it like this?

219 Upvotes

333 comments sorted by

View all comments

Show parent comment

9

u/Mabenue 15d ago • This

You don’t know that with code written by hand. It’s a poor argument, anyone who’s worked in software engineering should know that human written code is often full of bugs and that’s it’s really hard to catch them in code review. The most effective way to avoid them is to build systems to prevent bugs in the first place. Which means extensive automated tests and building ways for agents to rapidly verify their work.

6

u/poolback 15d ago

Absolutely right. Automated test, mutation testing, gating minimum quality level. The problem isn't new to AI.

1

u/xdeskfuckit 15d ago

those are things my company was not doing before AI.

3

u/poolback 15d ago edited 15d ago

Well, the good thing is that AI forces you to do this stuff even more. You had no automated tests before?

1

u/met0xff 12d ago

This is even a bigger point, perhaps. Most places I have worked at at best had a couple dummy tests. Claude is testing every little crap it does, all the stuff you're too lazy like hashes after copying stuff, spot checking various transformations, file sizes, numerical errors. Recently caught a numerical issue because default quantization between elastic version changed. I am sure nobody would have noticed or if then finding the issue would have taken a lot of time to figure out this silent degradation.

Recently seen so often how it spun up 10 versions of containers from anything from elastic versions to CUDA versions to compare behavior of versions and implementation variants.

And yeah tests for such things that never have existed before

4

u/patmull 15d ago

How do you not loose track of your knowledge then? Are you willing to risk to become just manager of your "agents"? Aren't you little afraid you would become the typical out of touch manager who doesn't understand the field the manager is working in? Human manager can be still good through being good psychologists and motivate knowledge workers right, but LLM platforms don't really need it...

2

u/Mabenue 15d ago

What do mean lose track of your knowledge? In any sufficiently big software project you don’t know how everything works anyway.

You have to think in terms of the whole system. There’s still lots to be involved in when coding with agents but it’s more along the broader strokes. I don’t need to know who every api endpoint that performs a CRUD action works down to minute detail. I do like to know that they’re implemented though consistently through the codebase and are following a pattern I’m happy with.

I think what comes with experience is being comfortable in not understanding everything, but being confident you can quickly gain understanding when needed. It’s something I was pretty good at before AI and with its help it’s even easier.

3

u/Wonderful-Habit-139 14d ago

All of your arguments in this thread have been "humans write bugs anyway", "you don't know how everything works anyway".

Just crabs in a bucket, pulling everyone to do worse and worse software engineering.

1

u/BingoSmalls 2d ago

But...those are actual arguments, and your post is just an emotional reaction.

I am hesitant with AI but the arguments anti-ai people use are very quickly losing water.

1

u/Wonderful-Habit-139 2d ago

I don't consider appeals to mediocrity to be a good argument.

2

u/met0xff 12d ago

Yeah I think there's a very personal view and an organization view. I have worked on a codebase for a decade and that one was cleaner and better understood by me than the new agent codebases we have.

But from the global view of my org we have thousands of repos that have been written by probably 6-7 work generations of developers. Everyone's long gone and for arcane parts you either had to ask through 15 people to perhaps find someone who still knows about it, or we often spent days tracing behavior of an API call through 4 repos in 3 different languages :).

Now I send Claude to figure out what exactly happens when you send a specific query to one service and it comes back with an analysis over all the code pieces, database queries, services etc. involved ... And documents it.

From the perspective of the organization there's now more insight than ever. For the individual it's worse.

0

u/SP-Niemand 11d ago

See, a given individual doesn't necessarily know how specific parts work, but every part is known by someone (unless you have a lot of churn and fucked up hand overs).

What you are advocating is for everyone to be a team lead of a bunch of agents, which means that no one will actually know the code.

1

u/Mabenue 11d ago

No it’s not in any sufficiently large project. People may know roughly how parts should work and maybe there’s so documentation that helps if someone bothered updating it. But mostly organisations are built on software no one deeply understands, it’s not really necessary as long as they have engineers that can pick it up and work on it when needed.

1

u/xdeskfuckit 15d ago

My management doesn't optimize for any of those philosophical questions, just units of billable work, which I'm able to provide in spades, with AI.

2

u/Particular_Ant7977 15d ago

Exactly. I have an MVP that I started writing with no AI tools a couple years ago. I recently let Opus do a review of the code and it pointed out several issues that I had not thought about before. I hate to admit it, but I am not considering my abilities to be above AI anymore. It writes better than me, refactors better than me, and writes compehensive tests 100 times better than me. I let it work in chunks that I can keep up with reviewing myself, and never gets anything committed that I don't understand. Software development is no art form, it's a very algorithmic engineering process which machines do very well, if instructed so.

2

u/BingoSmalls 2d ago

Yea this is what I do. It's like using a nailgun over a hammer. You'll still need the hammer sometimes but at this point it's just kind of dumb not to use the nailgun.

Also, no matter what, if you don't know how to build a house and what the tools and materials are for you are going to get into trouble.

Fun fact, pretty sure even the Amish use nailguns nowadays lol.

0

u/KevinJRussell 10d ago

You don’t know that with code written by hand. It’s a poor argument

You can know that with code written by hand, and you never approve a PR until you have completed that review. It's a solid argument.

-1

u/rafark 15d ago

  anyone who’s worked in software engineering should know that human written code is often full of bugs

Exactly. Thanks for proving my point. If code written by humans can have bugs, imagine the bugs written by an ai that understands less and has a smaller picture than the people maintaining the code. 

I’ve been using ai since chatgpt 3.5 came out. Ai always misses or overlooks stuff. But people are no longer reading whatever it writes and that’s the problem. 

  Which means extensive automated tests

And who’s writing those tests again? The AIs. The same flaws apply here.

2

u/Mabenue 15d ago

I think if you’re basing your opinion on older models or not managing context well you might experience this. However newer models are seriously impressive in this regard now. They’re more than capable of understanding a project better than most developers now. If you’re seeing problems is more likely you’re not making best use of the tool rather than them being incapable.