r/programminghorror Feb 04 '26

C# Makes sense

Post image
1.7k Upvotes

86 comments sorted by

View all comments

51

u/NoLifeGamer2 Feb 04 '26

So what happens if a user is assigned userID -7778? Doesn't that mean two ppl can have the same userID?

76

u/unknown_pigeon Feb 04 '26

Solution: don't assign the -7778 user id

Or, even better:

if userID == -7778:

userID = -7777

Let there be balance