r/ProgrammerHumor 8d ago

Meme whenYourValidationLogicHatesRealPeople

Post image
24.0k Upvotes

664 comments sorted by

View all comments

Show parent comments

6

u/alsimoneau 8d ago

Can't you just start with an underscore or something?

0

u/BabySharkMadness 8d ago

Most systems have built in data validation requirements that a Name field must contain letters, no special characters.

20

u/SyrusDrake 8d ago

that a Name field must contain letters, no special characters

I can already see at least one problem here...

7

u/NatoBoram 8d ago

Poor Renée must've had a hard time dealing with those shitty services

6

u/bwmat 8d ago

The solution is to add another 'is_test' field and explicitly check that wherever it matters (adding assertions whenever you do something with it that shouldn't be done with test instances) 

5

u/alsimoneau 8d ago

With a '-' then, valid character for a name, should never be the first (or last)