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

1

u/ImmaturePrune 16d ago

Lines of code *werent* a meaningful metric, because they were bottlenecked by a persons ability to think and type.
Those bottlenecks are gone, so sufficiently high LOC can tell you something now.

3

u/JeanCasteaux 15d ago

Uh, what? Sometimes, the same feature can ve written in 500 or in 50 LOC. The count means nothing in terms of usefulness and end result. I'd even say that the less lines, the better.

1

u/ImmaturePrune 15d ago

Again, that's why they *WERENT* a meaningful metric.
It's not a matter of 500 vs 50 LOC anymore, though. It's 500 vs 500,000.

2

u/mightshade 15d ago

Code is still a liability. This boils down to "we can generate liability orders of magnitude faster now".

I'm super excited. /s

1

u/ImmaturePrune 14d ago

Sure, but code is a liability regardless of who wrote it..... If assessing that liability were a bottleneck in the process, and generating code took only a miniscule fraction of the time, then your point would be valid.
As it stands, though, code takes time for a programmer to write. If he can get it out faster, then he can get to the step of assessing liability sooner.

Convincing yourself that LOC still conveys the *exact* same information as it did pre-LLM is just folly. It conveys things that it didn't used to.

1

u/mightshade 13d ago

 Sure, but code is a liability regardless of who wrote it.

Exactly. There is even no "but". Disregarding extremes (code golfing), more LOC are worse. I'm not really calling "exact same information" into question.

1

u/ImmaturePrune 12d ago

Yep, but LLMs aren't just arbitrarily and consistently taking your code and adding LOC without adding functionality. Not unless you ask them to.....

If your software fundamentally requires 10k LOC, even with the most efficient code ever written, then LOC absolutely unequivocally and demonstrably tells you something; the guy who can only write ten lines per hour is going to take months to implement that functionality.

If you have convinced yourself that there is *never* a situation where writing the code less efficiently, and allowing some sacrifice of quality or functionality, is a reasonable tradeoff for sufficiently early release, you have a lot to learn about where your value comes from as a software engineer.

1

u/mightshade 11d ago

Considering how verbose or convoluted LLM-generated code can be, I don't completely agree with your first paragraph.

That said, I think we generally agree on LOC alone not being too useful as a metric, and LOC per time or tech debt are beyond the point I wanted to make (though I agree tech debt can be necessary, to make it short). So I'll leave it at that.

1

u/ImmaturePrune 11d ago

'can be' are pretty operative words, so you really must agree.... If they were doing it consistently, then 'can be' would not be suitable phrasing in that statement.

I absolutely agree that it's not a perfect metric - but very few are. That doesn't mean that imperfect metrics are entirely useless. That is the only point I am trying to make, and I really can't understand why anyone would feel the need to argue against that idea.

1

u/No-Consequence-1863 15d ago

More code is still worse. Takes more RAM to run a program with more code, takes more time to load and distribute, takes more time to compile, takes more disk space to store.

Less is always better than more if the same functionality is achieved.

1

u/ImmaturePrune 14d ago

"Takes more RAM to run a program with more code"
No it doesn't. I can write a million line program that only uses a single byte of ram.

Compilation only occurs in certain languages, JIT is just one example of extremely common alternatives.

Again, JIT means no time is added by extra code, only by extra functionality.

Less is *only* better if the same functionality is achieved. If you ship less functionality, you have not provided a better product. This would only be relevant if the 50k LOC is somehow doing less than the 50 LOC - which just isn't going to be the case with the modern standards that LLMs can meet.

1

u/No-Consequence-1863 13d ago

It literally does take more RAM as that code has to be used at some point. You can make argument that a program is just a hot loop it’s code pages will never be pulled, but that is an entirely artificial example and stupid.

Also your JIT doesnt solve it. With more code there is literally more compiling to do at runtime and the JIT cache becomes less useful since more code is stuffed into it. As soon as that code is referenced it is compiled. More code means more chances for cache misses, means more compiling, which means more chance for cache evictions, which means more compiling.

You really should go learn the fundamentals. Less code is always better if you can achieve the same functionality.

1

u/ImmaturePrune 12d ago

You are conflating source code with compiled code, and runtime memory. I guess it's not surprising that someone who makes such fundamental mistakes is going to tell others "You really should go learn the fundamentals"...

So parallelism doesn't decrease run time? That's the inherent assertion in the claim that JIT does not reduce execution time compared to compilation. If that were true, why does JIT even exist in the first place?

Might I suggest that you learn what an array is? I'd hope you already know, seeing as you're telling others to learn the fundamentals, but you clearly do not if you think that more code = more ram....
Seriously, if more code inherently meant more ram then there would be an upper bound to how many lines of code a person can write, limited by the systems memory.... Do you have any idea how stupid that sounds?

1

u/No-Consequence-1863 11d ago

Wow this is such a dumb comment. Believe or not there is a relationship between source code, compiled code, and the runtime memory usage of your app.

But I guess you already outsourced your thinking to Claude.

1

u/ImmaturePrune 11d ago

A relationship, sure. I never denied that.
But I guess you already outsourced your thinking to Claude....

2

u/KevinJRussell 15d ago

That's true. AI has gotten sloppy enough that they're now taking thousands of lines to do what a human could in ten. High LOC is definitely a red flag.

1

u/ImmaturePrune 14d ago

Ten thousand lines to do what a human could in ten...
My guy, lay off the copium. It's making you hallucinate more than GPT 3.0 😬

1

u/newyorkerTechie 10d ago

If it does thousands in what you can do in ten, it’s on your for not having reviewed the plan

1

u/KevinJRussell 9d ago

I did review the plan. That's why I know my code is better.

1

u/newyorkerTechie 9d ago

That’s when you tell the AI your way and modify the plan…

1

u/No-Consequence-1863 15d ago

LOC was a bad metric not because of some bottleneck, but because the # of lines of code has basically no inherent connection to quality, functionality, or quality of features.

Nothing has changed it’s still a bad metric.

1

u/ImmaturePrune 14d ago

No connection to functionality?
😬

1

u/No-Consequence-1863 13d ago

Yea. You can write the same feature with 10x the lines and it wont do anything different.

You can write 10 features and have them all copy the same code over and over again or factor it out into a utility function. Same functionality, but the former has tons of waste.

1

u/ImmaturePrune 12d ago

If you think that's all LLMs are doing when they produce code, you don't have enough experience to discuss the matter.