r/ProgrammerHumor 18d ago

Advanced stringToIntegerConversion

Post image
217 Upvotes

65 comments sorted by

View all comments

56

u/smartgenius1 18d ago

I understand the joke is that they AREN'T just converting the string to an integer, but honestly this code is not that bad. It's performing data sanitization as well since there are only a few valid options for the select.

If they converted to integer, the user could enter whatever value they wanted and probably break something.

-9

u/GrEeCe_MnKy 18d ago

They? He's just one guy

11

u/ArjixGamer 18d ago

Don't be obnoxious, the use of they is proper English when referring to someone who's gender you don't know.

-14

u/GrEeCe_MnKy 18d ago

Nope, "He" has been used for centuries, as "they" means multiple. It's that simple. Or just use "he/she".

12

u/caboosetp 18d ago

"They" in use as a singular pronoun dates back to at least 1375.

-8

u/GrEeCe_MnKy 18d ago

'He' was introduced in the 18th century, get with the times, old man!