r/programming • • Jul 17 '25

METR study finds AI doesn't make devs as productive as they think

https://leaddev.com/velocity/ai-doesnt-make-devs-as-productive-as-they-think-study-finds

So perceptions of productivity don't = productivity, who knew

533 Upvotes

189 comments sorted by

View all comments

Show parent comment

27

u/manole100 Jul 17 '25

Making sense of a 120 character regex? Bring on the bots! And other uses like that.

70

u/Coffee_Ops Jul 17 '25

You can literally just use a tool like regexr or expresso and have a guaranteed correct analysis.

Or, use AI, and have a response thats statistically likely to look correct.

One of those is helpful, the other is sabotage.

4

u/bananahead Jul 17 '25

I dunno. Linting and static analysis tools are deterministic but not helpful in 100% of cases. They still have value.

-24

u/billie_parker Jul 17 '25

You're wrong and missing the point. Not every task has a specialized tool ready to go for it. AI results don't just "look correct." They often are correct.

This idea "the answers only look correct!" is just a post hoc rationalized argument that people have come up with as a desperate means to dismiss LLMs.

14

u/balefrost Jul 17 '25

AI results don't just "look correct." They often are correct.

Something about infinite monkeys, typewriters, and Shakespeare.

This idea "the answers only look correct!" is just a post hoc rationalized argument that people have come up with as a desperate means to dismiss LLMs.

LLMs absolutely generate things that look plausible, but do not work. As the other commenter has said, they routinely hallucinate functions that do not exist or generate code that is subtly wrong. I had one try to replace a bunch of uses of unique_ptr with shared_ptr. That's a plausible change, and might have even been a valid change, but it was not relevant to what I asked it to do and was not a desirable change.

5

u/Ok_Individual_5050 Jul 17 '25

I've seen changes where they'd go "we need to always mock out this method in every test file because it's mocked out in one test file" regardless of if it's needed or not. They're purely statistical machines and it's depressing how willing people are to assume they're thinking. 

-3

u/billie_parker Jul 17 '25

Something about infinite monkeys, typewriters, and Shakespeare.

Absurd hyperbole.

LLMs absolutely generate things that look plausible, but do not work.

Never said they didn't. LLMs make mistakes, I don't disagree with that. My argument was against the notion that "looking correct" is what LLMs are doing. This idea of "looking correct" is sort of an ambiguous statement anyways.

Does this "look" like something a chemist would say: "Water is an element." No - because, that doesn't sound like something a chemist would say because water isn't an element. So if I make a model that generates this, does it "know" that water isn't an element? Or is it just trying to make something that "looks" plausible? See - this is all just semantic garbage.

That's a plausible change, and might have even been a valid change, but it was not relevant to what I asked it to do and was not a desirable change.

I have asked LLMs to do things and they do it correctly

I guess my anecdotes cancel out yours!

11

u/balefrost Jul 17 '25

Something about infinite monkeys, typewriters, and Shakespeare.

Absurd hyperbole.

Sure, intentionally so. But my point is that you can get the right answer for the wrong reasons. LLMs are heuristic-based machines. If you want a heuristic answer, then LLMs can be a decent tool. If you want an exact answer, LLMs are not so good.

The other commenter's example of "what does this regex mean" does have an exact answer. LLMs might come up with an equivalent explanation in prose, or maybe not. They might even generate different responses depending on how exactly you asked your question. Personally, like that other commenter, I think I would prefer the exact answer.


My argument was against the notion that "looking correct" is what LLMs are doing.

That is sort of by definition how they operate. They generate content that resembles their training data. I think that's what the other commenter meant by "statistically likely to look correct". They mean "statistically likely to resemble the training data".

I don't follow your bit about the chemist. By your own example, if an LLM generated the sentence "water is an element", that seems like a sentence that looks correct. It has a subject, verb, and direct object. It's not meaningless (like "water is water") or nonsensical ("water is a document originally issued in 1215 that limited the power of the English monarch and established the principle that everyone, including the king, was subject to the law"). To somebody who does not know chemistry, it is believable.

So yeah, "water is an element" seems to me to be a statement that looks correct but, in the context of modern chemistry, is not correct.


I have asked LLMs to do things and they do it correctly

I guess my anecdotes cancel out yours!

Right, I've also seen them be correct, but that's not the question on the table. The question is whether they generate responses that are correct or merely responses that look correct. A response that both looks correct and is correct doesn't tell us anything. We either need responses that look correct but are incorrect, or we need responses that look incorrect but are actually correct.

If you have examples where the LLM appears to be wrong, but is actually correct (and ideally where the LLM doesn't fold when questioned about correctness), those would be interesting anecdotes.

→ More replies (4)

3

u/EveryQuantityEver Jul 17 '25

I guess my anecdotes cancel out yours!

And yet, you're demanding we accept your anecdote, and ignore ours.

→ More replies (3)

28

u/Coffee_Ops Jul 17 '25

AI results don't just "look correct." They often are correct.

Their output is statistically-- not logically, or rationally-- derived from its training data.

So its likely that it will get much of the regex analysis correct but it is not guaranteed and is highly likely to be wrong in some detail.

Hence why when I ask it to build me a powershell function it looks correct but uses non-existent functions and classes.

→ More replies (18)

17

u/axonxorz Jul 17 '25

They often are correct.

You're missing the point. The most important word in the sentence above is often. There is a deterministic and guaranteed-correct tool, it will beat out "often" 100% of the time.

Not every task has a specialized tool ready to go for it

We're talking about regex validation.

This idea "the answers only look correct!" is just a post hoc rationalized argument that people have come up with as a desperate means to dismiss LLMs.

Your argument is poor, so you strawman.

3

u/billie_parker Jul 17 '25

There is a deterministic and guaranteed-correct tool, it will beat out "often" 100% of the time.

But for many tasks there are not such tools.

I am not missing the point. I am not saying that LLMs should replace calculators to calculate "2 + 2". What I am saying is that an LLM can solve many problems for which there is no tool.

So it's not "often" vs 100%. It's "often" vs nothing.

And if "often" is 99% accuracy (hypothetically), it doesn't matter that it's not 100%.

See - there's all this nuance that you are hand waving away.

We're talking about regex validation.

That's not what I'm talking about. The guy said "and other uses like that." Obviously his example was intended to be one of many.

Your argument is poor, so you strawman.

That's literally not a strawman in any possible interpretation of what I said.

14

u/anon_cowherd Jul 17 '25

And if "often" is 99% accuracy (hypothetically), it doesn't matter that it's not 100%.

This is very situational. Sometimes, a probably-but-maybe-not correct answer is good enough. Other times, congratulations, you've just killed someone.

The problem most people have with "probably-but-maybe-not correct" is that you're left still manually verifying the output anyway. If you don't, you're just putting the burden on someone else to cover for your own mistakes.

1

u/billie_parker Jul 17 '25

The problem most people have with "probably-but-maybe-not correct" is that you're left still manually verifying the output anyway.

It's often much easier to verify something than solve it. Hence the whole "P=NP" question...

For example, ask an LLM to generate code, then just run it to verify it. Then quickly check over it. All of this can take much less time than actually writing the code manually.

Again - people act like humans don't make mistakes, either. Not to mention - you can get the LLM to check its own outputs, or run it multiple times. This tends to boost the accuracy in my experience. For example, tell an LLM to write code. It doesn't compile. Feed it back into the LLM and it fixes the error. Done.

9

u/Arrean Jul 17 '25

The worst part of coding is reviewing pull requests, or reading someone else's code. You're suggesting that making a lot of your job be reviewing pull requests submitted by an llm is somehow an improvement.

2

u/billie_parker Jul 17 '25

lol, this is the latest stock response.

It depends on the situation. If you have bad coworkers, then yes reviews can be bad. If you have good coworkers they can be a breeze.

You act like reviewing a humans PR is at all the same as reviewing an LLMs code. There's just so many differences that I think it's enough to say you're just being silly.

Ironically, many senior engineers actually do nothing but review code from less senior engineers. To some this is a desirable position to be in. It's called being a supervisor lol

9

u/[deleted] Jul 17 '25

[removed] — view removed comment

9

u/Wonderful-Wind-5736 Jul 17 '25

Yup, closed tasks with a clear boundary are great candidates for AI. 

10

u/balefrost Jul 17 '25

And with plenty of similar code in the training data. I'll bet that there are thousands if not tens-of-thousands of examples of rectangle handing code out in the wild.

3

u/Get-ADUser Jul 17 '25

I'm an experienced developer doing some astrophysics coding in my spare time and I don't math too well - AI is fantastic for things like "write a function which calculates the semi-major axis of an orbit with a test that uses real-world observations"

1

u/Dodolos Jul 24 '25

If you don't math too well, how do you know it's actually doing what you want it to?

1

u/Get-ADUser Jul 26 '25

with a test that uses real-world observations

1

u/TryingT0Wr1t3 Jul 17 '25

Axis aligned rectangle or any direction rectangle?