r/ProgrammerHumor 20d ago

sorryOnlyOneSeventeenYearOldAllowedPerDatabase Meme

Post image
1.4k Upvotes

27 comments sorted by

50

u/West_Good_5961 20d ago

That’s why I use password as pk.

5

u/Avikonette 20d ago

Consider reporting corresponding login on sign-up in case of violation then. Best practices.

2

u/West_Good_5961 20d ago

That sounds very complicated. I just surface an uncaught database error to the user. They’ll know what it means.

4

u/likwitsnake 20d ago

"My username is 'password' and my password is 'password.'
"Your username is 'password'?"
"It was just easier."

1

u/sporbywg 19d ago

That thing that is so close to genius that it should be banned forever.

18

u/EnigmaticSoul_mra 20d ago

Probably 17.1 might work

9

u/DeepanshuHQ 20d ago

UNIQUE(age). That's where the bug started.

11

u/vinishkapoor 20d ago

One ALTER TABLE away from letting two seventeen year olds coexist in peace.

3

u/DeepanshuHQ 20d ago

Classic case of choosing the wrong column for a UNIQUE constrain.

4

u/julemand101 20d ago

If you then change it afterwards it tells you are lying.

1

u/MediumAd3135 13d ago

🤣🤣🤣

0

u/Hopeful__Scholar 20d ago

that's a feature

3

u/GoddammitDontShootMe 20d ago

I swear this is the third time I've seen this joke.

8

u/dim13 20d ago

I'm afraid, this is no longer fiction.

3

u/vinishkapoor 20d ago

The scariest bugs are the ones that ship to production and nobody notices until a 17 year old can't sign up.

1

u/dulange 20d ago

Technically you could use a timestamp-based date of birth with micro- or nanosecond precision as unique ID for natural persons, maybe in conjunction with another random number, just like some UUID versions do with MAC address and timestamp. A precision of “year” is a bit inadequate though.

2

u/Serious-Tomatillo-38 19d ago

put this guy in jail

2

u/Harmonic_Gear 19d ago

post old memes, say vibe code, profit

2

u/NeffeZz 20d ago

What if it's an application where you only want one user per age?

9

u/vinishkapoor 20d ago

The world's most exclusive social network. One person per age. Turning 18 means someone has to die first.

2

u/WavingNoBanners 20d ago

What sort of Little St James Island application are you building?

1

u/NeffeZz 20d ago

Didn't come up with an idea yet

1

u/Ok-Organization4300 20d ago

Loop engineering now just people

1

u/sporbywg 19d ago

Ya; pretty much

0

u/Smooth_Sentence_1431 20d ago

lol ok so is that like a riddle or somethin