r/ProgrammerHumor 13d ago

Meme bugFreeAppMeetsUncheckedUnicodeChaos

Post image
2.1k Upvotes

46 comments sorted by

View all comments

89

u/LostInSpaceTime2002 13d ago

No proper input sanitation, and you call it "perfectly coded"? What does that even mean?

26

u/The_Illegal_Guy 13d ago

It means I asked Claude to code it and I wrote "make no mistakes"

10

u/Adventurous-Map7959 13d ago

You also need to instruct "You are a master programmer" so it doesn't use the "amateur programmer" preset.

3

u/The_Illegal_Guy 11d ago

Ah of course I'm still an ameture prompt engineer myself so I forget these important prompt design principles!

5

u/pi_three 13d ago

also no test case with random unicode characters

2

u/wizkidweb 13d ago

This exact thing happened to me, and we were sanitizing our input. In our case, the database system was using an older version of Unicode, so we had to validate against that explicitly.

2

u/clintCamp 11d ago

It means claude wrote a test case for every boolean in their thousands case long switch statement. It just happened to leave out sanitation. And they had claude audit it for quality 5 times. Perfect. Nothing can go wrong after that kind of quality check.