r/programminghumor • • Sep 20 '26

database admin choosing variable names

Post image
903 Upvotes

113 comments sorted by

View all comments

105

u/NichtFBI Sep 20 '26

userid userID

0

u/[deleted] Sep 21 '26

[deleted] — view deleted comment

22

u/klimmesil Sep 21 '26

identifierBelongingToCurrentUser

9

u/Worldly-Cherry9631 Sep 21 '26

indentificationCorrespondingWithTheMostEsteemedApllicableUser

2

u/Colon_Backslash Sep 22 '26

Hot damn, I'm stealing this.

mailingAddressElectronic numberOfTheUserTypeOfTelephone

11

u/Hey-buuuddy Sep 21 '26

user-id

3

u/ArduennSchwartzman Sep 21 '26

userLd

5

u/DiscipleOfYeshua Sep 21 '26

Ooo that would be horrible.

userld instead of userId

Why look for unexpected bugs when you can introduce them manually?

→ More replies (1)

3

u/Wavertron Sep 20 '26

Second one, the D is not the start of a new word, so it should be lowercase

5

u/NichtFBI Sep 21 '26

But ID isn't a word, unless you count Latin.

1

u/Wavertron Sep 21 '26

What do you think it's short for?

5

u/NichtFBI Sep 21 '26

Identification.

5

u/Sudden-Eye801 Sep 21 '26

The D stands for “dentification”

1

u/hdkaoskd Sep 21 '26

How do you pronounce "id"?

1

u/Salzdrache Sep 23 '26

Eye dee, when its written "userID", Idd when it's written "userId".

Just to differentiate and avoid mistakes

1

u/yousirnaime Sep 21 '26

It’s UserID

1

u/_Peety_T Sep 22 '26

UserIdent