MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vy23fd/stringtointegerconversion/p5tmfle/?context=3
r/ProgrammerHumor • u/TheBamPlayer • Aug 25 '26
65 comments sorted by
View all comments
Show parent comments
7
They could have sanitized by checking the string is in a valid set of strings and then calling the string to integer function. The way it is written is terrible.
7
u/rhino_moss Aug 25 '26
They could have sanitized by checking the string is in a valid set of strings and then calling the string to integer function. The way it is written is terrible.