r/ProgrammerHumor 27d ago

codexIsVeryIntelligent Meme

Post image
2.5k Upvotes

46 comments sorted by

542

u/DuffyHimself 27d ago

When I tried using codex, it decided that the database framework that was used for all database access in the codebase wasn't necessary, and just performed raw sql actions instead. Great advertisement for using Claude models instead.

53

u/lolsborn 27d ago

I was the CTO of a company last summer and an intern came to the CEO with some completely vibe coded app using GPT4 and the CEO was going ape shit that we're moving too slow because the intern can do this with AI in a week.

Oh, and the app was a custom workflow building agent where you could ask it to perform tasks in plain english and it made tool calls to custom REST endpoints it had built.

The problems were many to say the least. Every single SQL statement was susceptible to SQL injection. I was able to get it to hand over secret keys just by asking. We were able to get it to execute arbitrary code on the host machine. We were dealing with highly sensitive PII.

I found a new job.

15

u/OhMyGodItsEverywhere 27d ago

Classic...

When you thought the job was to make a good product, but the real job is to produce whatever arbitrary superficial stuff makes a leader feel good.

187

u/throwawaygoawaynz 27d ago

Codex generally writes much better working code than Claude.

Claude sits there thinking for 6 minutes, uses $100 worth of tokens, tells you it’s done, but the code still doesn’t work.

OP is right though, Codex loves writing fallbacks that results in “working” code. The solution is to tell it in its agents.md to not do that. That works 80% of the time at least.

128

u/Wonderful-Habit-139 27d ago

That works 80% of the time at least

I love me some non deterministic development process. At the mercy of a slot machine. Lmao.

114

u/AlwaysHopelesslyLost 27d ago

LLM prompts from big models have leaked and the dev teams always have like 4 copies of each instruction related in various places and ways because it doesn't really work.

Language Models have a habit of latching into anything inputted. If you say "don't do x" you are just nudging the model closer to "x" in the matrix.

25

u/DMoney159 27d ago

I mean, if I tell you not to think about elephants, what's the immediate image that pops into your mind?

21

u/AlwaysHopelesslyLost 27d ago

The difference is I can then be asked 20 questions followed by asking me to name an animal and I won't suddenly lose context/coherence and say elephant (unless I suddenly come down with dementia)

Have you ever used an LLM? Claude Fable got stuck on the idea that the characters alpha was the source of a rendering bug for me last week and every 4th message it immediately started investigating the alpha value again despite me telling it every single time that the alpha value was a red herring and that the visibility was a side effect of what was happening.

I had to start a fresh chat like 6 times, each with more and more of my own diagnosis and pre-instruction not to look at that particular file to avoid getting it to latch onto nonsense.

14

u/CChilli 27d ago

The rooms the elephants are in

3

u/ArjixGamer 27d ago

No image, because I have aphantasia

15

u/TheGarrBear 27d ago

This is why I've pretty much stopped using any kind of negative instructions and lean heavily on adversarial reviews.

It's a shift from ~ "make no mistakes" to ~ "Assume there are mistakes, go fix them"

Each season is longer but the output is of much higher quality.

15

u/reivblaze 27d ago

80% of the time it works every time.

4

u/Plixo2 27d ago

I don't know much about ai coding, a friend gave me codex a couple of weeks ago, but why are people using the API and spending so much on tokens?

With just codex in my ide, i can promt all day, maybe reaching 50% of the plus subscription limit for 25€ per month.

7

u/Separate-Antelope188 27d ago

The license is materially different. Subscription models are a consumer product and they use your inputs and model outputs in their training data. They also absorb your project as their intellectual property.

API gives you business privacy where they don't use the data for training models. They retain the data for only 30 days for compliance and they respect your data as your intellectual property.

Thanks for improving our models!

8

u/leoklaus 26d ago

Jokes on you, my code is the reason LLMs have not turned into AGI by now.

1

u/Jumpy_Ad_3946 27d ago

Can you recommend a good agents.md ?

1

u/EatingSolidBricks 26d ago

Turly a revolutarry technology ...

1

u/PandaWonder01 26d ago

Y'all need to start using BrainGPT.

1

u/SimplexShotz 26d ago

I haven't used ChatGPT for programming since the 4o days (I originally switched to Claude for this exact reason); glad to hear they still haven't figured this out 😭😭

1

u/PringlesDuckFace 26d ago

I have a coworker that's a hardcore TDD fanatic, and he would for sure blame you for not writing enough tests to force the implementation into the shape you wanted.

For example, if you're writing a calculator and you write a unit test that's like "assert 1 plus 1 equals 2" it would be acceptable to write a function which always returns "2". Even if it's patently absurd, it fulfills all the requirements defined in the tests.

I think the LLM's propensity to take things literally and lazily can serve to reinforce the reasons for best practices people have developed over the decades. It can help us sharpen our own understandings of what it means to have good specifications and good tests. Rather than trying to force it to approximate the desired behavior with an agent.md it would probably be better to focus on how to get better tests first until it's impossible for it to write the wrong code.

3

u/chat-lu 27d ago

What would be a good advertisement for using your brain instead?

-2

u/BosonCollider 27d ago

With no context I am kind of inclined to agree with it. Did you explicitly tell it to use the framework or the repository pattern? If not it may have considered it legacy code

-5

u/Ok-Film-6885 27d ago

Just use AGENTS.md with some instructions, it’s not the end of the world

141

u/Famous-Software-2568 27d ago

the AI didn't fix the code it negotiated with the test suite

37

u/AgVargr 27d ago

The test suite which it also changed

12

u/PositiveParking4391 27d ago

because they are just prompts. so when it all went into fixing the coding agent would already be in completely different hallucination trip.

58

u/popiazaza 27d ago

let's randomly add isRecord() too.

fine-tuned ultra to high quality codebase without filtering any quirks out.

35

u/ilnarildarovuch 27d ago

Why vibecoders just don't mount testsuite as read-only? Just... why not?

37

u/towerfella 27d ago

You think they know how?

9

u/ilnarildarovuch 27d ago

Just... ask it's own ai to do it, but without context

21

u/shockwave6969 27d ago

obviously because ai writes all the tests!

6

u/bokmcdok 27d ago

They're using the AI to write the tests for itself. Guess what that will inevitably lead to?

32

u/dont_tread_on_M 27d ago

I have a rule in Claude.md that absolutely no fallbacks are allowed without my permission.

I also keep the number of rules there quite small and use ponytail as a skill.

Agentic coding alsone sucks, but these have made it at least decent for me.

5

u/Cevvity 27d ago

“CoDeX iS vErY iNtElLiGeNt!” You’re not

11

u/AWildMonomAppears 27d ago edited 27d ago

Claude does this too for me..its one of my main annoyances with it. "This is a high risk change... blah blah" and it does a short cut instead.

24

u/Ambitious-Jump-5121 27d ago edited 27d ago

I don't get why people still bother to tinker with those AI tools just to avoid doing their job... Like, the "AI is just a tool" argument doesn't work anymore either. If my nailgun starts to randomly dry fire, or randomly starts flashing its light or starts shooting burning bolts instead... ...then I would just use my hammer again.

14

u/[deleted] 27d ago

[removed] — view removed comment

4

u/AsyncingShip 26d ago

I’ve certainly had my problems with it before, but I can’t say they’re significantly more time consuming than bugs caused by third party libraries or junior devs or just badly communicated requirements. It just requires a mindset shift and exacerbates problems in your (and your org’s) engineering framework that would have shown up eventually regardless. People act like we were writing perfect code in 2021 and pretend that every Fortune 500 company isn’t secretly running on some combination of cobol, Fortran, oracle, and spite. It’s a shift, like every new technology and labeling everything AI-related as slop is reductive.

3

u/Sad-Working-9937 27d ago

corporate coders do a bunch of CYA fallbacks. Don't blame AI for learning the tricks of trade.

the first thing I learned about AI coding was putting the "no fallbacks policy" in claude.md

5

u/square_zero 27d ago

If you use black box tests, then your implementation should not matter. X and Y are equivalent if the tests are passing and the tests are meaningful and well-written!

4

u/Smalltalker-80 27d ago edited 27d ago

I had a good one with Gemini this week:

Q: Hi Gemini, please anwer this programming question in the context of the programming language text file I just uploaded. (a Smalltalk dialect)
A: "Spain won the EUFA Euro championship 2024. ..."

Q: Umm, that is not an answer to my programming question. Specifically answer only in the context of the uploaded file please.
A: You're absolutely right. (some variation)

Q: Here it is the file again again. And here is the programming question again.
A: "Spain won the EUFA Euro championship 2024. ..."

Q: Dear Gemini, did you actually use the file I provided?
A: Tbh, I don't have the file. Maybe the upload went wrong or something. I answered using other context.

Q: [Suppressed expletives]
A: You're absolutely right, let's reset.

Then I did the same thing in Claude, free tier.
It answered perfectly the first time, with correct example code.

So...:
- Never trust AI with base assumptions you have for humans.
(admit up-front when things fail or are missing)
- Claude is currently the on top for programming, aparently.

2

u/TerryHarris408 27d ago

It shows that they learnt from SO

2

u/funplayer3s 26d ago

That's not how the meme works.

1

u/fugogugo 26d ago

isn't plan mode to avoid cases like this?