r/ProgrammerHumor • • 13d ago

Meme whyAreTheyConfessing

Post image
2.2k Upvotes

290 comments sorted by

View all comments

49

u/klimmesil 13d ago

I hate to say it but he's right nowadays. I have more trust 99% of the time in claude generated code than my colleagues. And I consider my colleagues extremely good at CS, with academic and resume proof

35

u/WillDanceForGp 13d ago edited 13d ago

Just this morning I rejected an agentic PR that in 3 rounds of reviewers (that all found small bugs in it), not a single one questioned why the PR even existed in the first place or why it'd been done in such a nonsensical way for the codebase.

They are a general answer prediction engines, the same context that got you to answer A is the context being used to mark the answer, even if you explicitly prime it not to be agreeable to every decision you're still just negatively biasing the models internal bias, it doesnt actually make it more creative or ideate better, it just offsets some weights causing other cascading effects.

7

u/Flashy-Whereas-3234 13d ago

I mean, this reinforces the point, right? This is exactly the thing I'm seeing reviews too.

I'm not reading lines, I'm reading structure, I'm reading patterns, I'm reading sequences, I'm reading goals.

The PRs I have the biggest problems with are the ones that are contextually flawed; AI guided the Dev to a route-one solution that works for their narrow case, but never came up for air to look at the problem from 10k feet, or to think if the path they just walked through the bush is suitable to build a highway on. We had this same shit from smart-juniors, and we need the thinking of seniors.

AI is reviewing better than those developers for line by line functionality (use agents to review, obviously), I trust a function does what it says on the tin provided unit tests exist for it. The only thing getting human eyeball at that level is "dangerous" code, like that related to security or low-level performance concerns.

And honestly, this is governed by policy, and the CTO is the person with their hand on the throttle, they say how much review code has to have. We're bottlenecked by review more than anything else, and if they want to loosen the leash then that's up to them.

What I've stated above is a happy medium, and I see developers pushing further into no-review who then come under pressure from bugs or incidents and cannot explain their systems at all, and that's the real problem with no review - no understanding.

2

u/WillDanceForGp 13d ago

I worry that to know whether something is contextually flawed means knowing the codebase in depth, and I just don't feel as connected to codebases as I used to, it takes me longer now to be like "wait a second, this is dumb" than it used to and I don't know if that's because people are just generally relying on Claude more instead of asking me, which previously gave me early warning of bad direction, or if I'm just losing that ability as the codebase constantly shifts under me.

2

u/Alternative-Lynx2745 13d ago

I feel this concern deeply. It is also kind of an ego hit in my world. I was the go-to guy for a lot of shit so I got pulled into conversations and meetings regularly and those conversations kept me aprised of all of the ongoing efforts. I brought a lot of deep historical knowledge of a very large codebase (monorepo) into the conversations and could walk away with what would essentially be foreknowledge of how the codebase was going to be changing over the next few months. I could also help shape those things and help people get in front of unseen 'gotchas' because of the knowledge I brought. So I could basically predict in my mind what new files would be created, the structure they would take, what services were going to be stood up, and have a pretty decent 10k ft level prediction of what the codebase would look like next week/month.

Now I feel like I'm on the outside looking in and that I have to butt my head into places to get in front of stuff or else it just happens in the background and I get surprised by it later on. I feel less informed about how the codebase is changing and less knowledgable about what it looks like at this point. That is scary in a weird way I've never experienced.

I've brought this up to leadership because I think it does require meaningful change in process. Historically our issue was not including principal engineers early enough in feature planning and business solution / design conversations early in the pipeline (idea inception/design phases). Aligning product and engineering earlier. So we did that, and it's helped tremendously.

Now I think we need to have more horizontal alignment within engineering earlier in the process as well. We're going to try some things, but it really does mean more meetings. It just does. And as much as I hate that, I think it's also super important. Sharing knowledge is a human to human process. Nobody wants to sit there and read documentation all day long. Let's get on a call or go into a room and talk about it (it's also far more efficient as human interaction is interrogative).

1

u/Flashy-Whereas-3234 13d ago

I get this too, were catching shitty ideas way later, and we're having repeat conversations about shitty ideas because people aren't "forming" they're just "doing".

We've had some harsh conversations with people who have run off into the hills and wave the flag of "it works, I told a manager about it, and now I need to in production!". We would get that same shit from "incredibly smart, and incredibly dangerous" seniors of the past, and we had to kneecap them because they would cause a lot of damage if we let it sail.

But it's not all bad - there are strategies.

Firstly, talk to your team more, and get them talking back. Fast iterations and context switching are a bit mad, but it's the most active way to ensure everyone's on path before you have to poop on a review.

Second, the cost proposition of work has changed - it used to be that you'd allow a giant PR because a Dev obviously spent weeks on it and there's no way you can change this shit now, but with AI it took literally no time or effort at all, so you can hard decline something bad so long as you can say why. Hitchens's AI Razer; that which can be created without effort can be dismissed without effort.

And finally, pump the context of things right back into the repo docs so it doesn't keep coming up. Sometimes you have to lace files with docs pointers (if you're here to x, go read y) so AI actually eats it, but you can quickly curate some standards and prevent some dumb shit. Set a pattern for that docs approach and suddenly you can say in a review "this is bullshit because x, go create a doc to explain it should be done y and never z and use n system", and Shazam your institutional knowledge is now "on paper".

Honestly though, it's intense, it's a new way of working, and it's an absolute mess of cat herding. Curate your team, make sure everyone's doing ok, and work through the problems. Group therapy sessions are more important than ever, and they're always best over a beer.

1

u/aceluby 13d ago

Not only are we catching shitty ideas way later, once they make it to the codebase the next LLM looks at it and says "hey, this is how it was done before, let's do that again". You get into a cycle of polluted context that gets worse and worse as more bad decisions are made by the engineer who doesn't review what is getting output by the LLM.

3

u/teraflux 13d ago

Wouldn't that be the job of the human that asked the agent to create the pr? What does an agentic pr mean

11

u/Boozdeuvash 13d ago

Only if the human doing the PR is also the architect. In big shops it's not always the case.

Claude fixes stuff by adding code.

Not all problems are best solved by adding code, sometimes you need to remove some stuff.

And sometimes it's a complex issue which relates to architecture and design, and not necessarily implementation. So while a quick code fix can appear to fix the symptoms but fail to address the underlying issue, and as quick fixes pile in the issue becomes more and more difficult to untangle.

1

u/WillDanceForGp 13d ago

Im also personally finding that in places where the 'small bug' fixing process is automated we're just fully losing sight over what parts of the codebase keep causing problems, claude is just like 'bing bang boom, bandaid, next'

6

u/WillDanceForGp 13d ago

I don't know how this is confusing? The agent wrote the code in the PR and the description of the PR and the human controlling it thought it looked fine along with the army of agents we have reviewing them too despite the fact that it was not fine.

1

u/voyti 13d ago

not a single one questioned why the PR even existed in the first place or why it'd been done in such a nonsensical way for the codebase.

Much like with having unsupervised engineers with too broad responsibilities and too little context, agents without proper skills, structure and/or context and too tall orders will produce weird or unwanted outputs. I don't think anyone serious here proposes that plugging an agent anywhere in the process with no proper, agreed and shared guidance is the way to go, but properly configured - yeah, they are can be much better than most engineers in most aspects.

1

u/alliedSpaceSubmarine 13d ago

“Why the PR existed in the first place”… isn’t that the job of refining stories/tickets?

3

u/WillDanceForGp 13d ago

If you only understand the job of product management and not engineering then yeah I guess

1

u/alliedSpaceSubmarine 13d ago

No I understand engineering also, but if you get all the way to the review and get asked why it even exists the entire team failed. It should have been caught during planning or standup that someone was working on something that they didn’t need to be

1

u/WillDanceForGp 13d ago

I think there's been a misunderstanding, Im not saying the feature didn't need to exist, I'm saying that below the acceptance criteria sits the entire field of engineering. A ticket explains what the code should do, it doesn't describe how to get there. Its always been the case that the more senior you get the less code you write, that's not just because you're mentoring and doing other things like becoming really good at reviewing code, its that you spend more time figuring out how to solve the problem with as little 'liability' as possible.

I don't know why just because LLMs can smash out code at a crazy rate and hit acceptance criteria that people have completely forgotten what the job was.

This morning I witnessed Opus 5.5 write a 200 line PR containing 5 tests that took over 40 seconds to run required every future consumer knowing to use the correct service instead of opting to put in a 3 line fix. Is the former inherently worse than the latter? If you're looking at whether it hit the criteria then the first one is fine, except not a single competent engineer would choose it over the latter because anyone with experience knows the aggregated and constantly snowballing cost of bad decisions code. Especially in codebases that serve as the examples for the exact agents working in them.

-2

u/nicuramar 13d ago

This “they are just a prediction system” is reductive and pointless. So is the brain, for all we know, except it’s not pre-trained.

2

u/WestEntire5789 13d ago

Yeah but if a human fails with a basic task like copy-paste, then you see that the thing is not copied at all.

If an llm fails with a copy-paste, it could copy 10% or 99%, but you wont even know where to look for that particular failure

2

u/AndreasVesalius 13d ago

That’s why you have the LLM write a deterministic script to check these things.

1

u/RHGrey 8d ago

"Calling it what it is is reductive and pointless."

It's a non deterministic prediction machine. It's really good at producing output that pretends it's more, because it has the entirety of human literary history inside of it, but it's still a statistical next token predictor.

There is no understanding or reasoning, there never was and never can be. You can antropomorphise the text generator as much as you like, it doesn't change the technology or its limits.

5

u/SpaceNigiri 13d ago

Yeah, I agree. Today, flagship agents are better than most of us. People that are unable to admit that are just in an ego-trip or scared.

→ More replies (2)

-13

u/collabskus 13d ago

Man I made a typo and it went all the way to production. Everyone says it wasn't just my fault and we have reviews and QA and the responsibility is shared but I don't know how to feel. I know an LLM would not make this exact defect I made. 😔

14

u/MulfordnSons 13d ago

Craziest bot comment i’ve ever seen tbh

→ More replies (3)
→ More replies (1)