Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Each digit of a mobile number is transmitted through the connection established by the previous digit and switching happens entirely on the receiving side, which means that the length of a phone number is technically unlimited.
-
Root825083y@eo2875 @jasongodev
I’ve run into so many of these problems in production. I don’t understand why people overzealously validate personal data.
Valid names can range from “Ko Bip” to (as I just found online) “Anna Bertha Cecilia Diana Emily Fanny Gertrude Hypatia Inez Jane Kate Louise Maud Nora Ophelia Prudence Quince Rebecca Sarah Teresa Ulysis Venus Winifred Xenophon Yetty Zeno Pepper”
The longest legit name I’ve personally seen in production was Czech. The shortest legal name could be a single letter first name, no middle or last name. -
But your last name 𝘪𝘴 too short. What if it was just a comment, not a validation error.
Do you specialise in json and go? -
Voxera115853yThe real problem with these validations is that not only do the block legitimate users, they do nothing to block illegitimate ones as its very easy to provide fake data.
So if you really need to verify it for legal or technical reasons you need some other way. -
@lbfalvy there is a format called E.164 which limits the number up to 15. The form I featured here does not respect the e.164 format.
-
eo287540013y@electrineer "what's your age? 13?! What a dweeb. Get in there, we don't have an age restriction or anything it's just funny.
Yours truly,
AWS Ubuntu server" -
irene33943yI work in the USA from Canada. Our product owners drive a lot of internationalization problems by being ethnocentric.
I say we should keep track of the currency and they say it is fine in USD. I say we might need to allow the user to use a comma instead of a period as a decimal and they say nah. I say the responsiveness in the layout is not good for extremely long or short translations they say it looks fine in English. I think we should be generous with name lengths they say 50 chars max.
Holy shit we need to fix this for users in Turkey it is a deal breaker. Holy shit the Koreans aren’t okay with this. Holy shit the French can’t type in numbers. Holy shit the layout breaks for polish users. Holy shit we can’t release in the UAE because Arabic is right to left. It was all avoidable if they had listened to me when I shared my knowledge of internationalization. Fucking Americans and their assumption that the world magically runs on American dollars.
Whoever the programmer of this form has not seen the world outside their own country.
rant