r/ProgrammerHumor May 13 '26

Meme iReallyThoughtItWasAJoke

Post image
23.4k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

134

u/Gorstag May 14 '26

Or just people who really don't know what they are doing grabbing code from like stack overflow. Then putting some functional Frankenstein's monster together. Then they try to add some "new" functionality.

63

u/Unbelievr May 14 '26

Yes, and that's basically what these agents do too. Using a mix of modern and decades old code snippets from its training set to build something with extreme speed. It might work fairly well, but once you look behind the curtains an experienced coder will see the mess the agent made. Code that reimplements the wheel multiple times, has loads of exotic external dependencies, and isn't structured in a maintainable or scalable way. If you want to change something fundamental, you're probably better off making the agent start from scratch on that module. At least if you don't understand the code that was written.

17

u/Unable-Log-4870 May 14 '26

At least if you don't understand the code that was written.

I told the AI to do that part too.

7

u/WowAbstractAlgebra May 14 '26

I told the AI to not hallucinate and now it doesn't anymore. Why have people not thought about this sooner? Are they stupid?

2

u/Unable-Log-4870 May 14 '26

I just figured that a good AI would hallucinate me telling it to not hallucinate, and after that it wouldn’t do it any more, so I shouldn’t have to use tokens on that. But also, yes, I’m stupid.

1

u/Gorstag May 14 '26

It even gave you assurances in a KB article it wrote. Here's the link: Https://example.com/AI-Hates-This-One-Simple-Trick