4 ms·
Why does it matter? If I managed to acquire the 8.8.8.0/24 netblock, I might very well want to use 'user@8.8.8.8' as my e-mail address. I don't see why it has
by anonyfuss 13y ago
Why does it matter? If I managed to acquire the 8.8.8.0/24 netblock, I might very well want to use 'user@8.8.8.8' as my e-mail address.
I don't see why it has any material affect on someone requesting e-mail addresses: if it's valid, then it's valid.
This seems to be an example of the misplaced sense of propriety with which people approach validating e-mail addresses -- that somehow, your job isn't just to help the user enter an address, but also to define what is and is not 'reasonable'.
Imagine if companies refused to accept "1 Infinite Loop" as a street address because it's clearly ridiculous. Except that it's Apple's actual street address.
- davidw 13y agoThe one user in 10,000 who actually uses an ip address as an email address can surely figure out why they're getting rejected. Of course, he'll probably go channel the Comic Book Guy and write a scathing post on his blog (Worst. Regexp. Ever.), but the normal people who use the service probably won't see that anyway.
- anonyfuss 13y agoAgain, what material difference does it make to you? Overzealously rejecting valid addresses is an application of subjective and inaccurate ideas about what addresses 'should' look like, and ignores the simple fact we've already mutually and formally defined valid address formats via the IETF RFCs.
- davidw 13y ago> Again, why does this matter to you, other than some sort of misplaced sense of authoritarian aesthetics? Yes! Great Comic Book Guy impression. Why it matters is that for most smallish companies, you want to get something up that helps your users not do stupid stuff (†), but due to time and resource constraints, you're likely to end up with some kind of 80/20 solution. It'll work well in most cases, and fall down in some others. I would certainly agree with the idea that you not force people, but a nudge is probably going to save you money in increased user retention and fewer support hassles. † - I once had a person ask why their emails to http://example.com http://example.com were failing.
- anonyfuss 13y ago> Yes! Great Comic Book Guy impression. In that case, great junior engineer impression on your part. Pedantry matters in complex interoperable systems, because otherwise they're not interoperable. This is why we have detailed standards documents on e-mail address formats. > I would certainly agree with the idea that you not force people, but a nudge is probably going to save you money in increased user retention and fewer support hassles. A 'nudge' isn't going to come from yet-another-broken-email-validation regexp. There's no need for an 80/20 solution; this just isn't that hard. > † - I once had a person ask why their emails to http://somesite.com http://somesite.com were failing. That's not a valid e-mail address (as per RFC822).
- stonemetal 13y agoThe crappy regex solution is much faster than what you suggest, and will work 99.9% of the time. The time you spend doing it the right way will reduce your conversion rate because people will view your site as slow. In this case worse is better.
- anonyfuss 13y ago> The time you spend doing it the right way will reduce your conversion rate because people will view your site as slow. During all those new account registrations they're constantly making? Does this feel slow to you? https://www.emailitin.com/email_validator https://www.emailitin.com/email_validator > In this case worse is better. No, it's not. Every time you exclude a valid e-mail address, you lose or annoy a customer for no reason other than your own lack of understanding of the RFCs. There are a number of steps that can be taken that don't involve broken regexps that filter out valid addresses. Please stop trying to justify doing it completely incorrectly.
- stonemetal 13y agoDoes this feel slow to you? https://www.emailitin.com/email_validator https://www.emailitin.com/email_validator Yes, it did.
- anonyfuss 13y agoI got a response in 55ms. We must have different definitions of 'slow'.
- stonemetal 13y agoI must have hit a speed bump somewhere then, it took around 2 seconds to look up my email address.
- snowwrestler 13y agoI do see a misplaced sense of propriety here, and it's coming from you. Blocking a few valid email addresses in the service of helping most customers is just a business decision, not a moral issue. For example: requiring shirt and shoes in a restaurant will block some customers from dining there. But it improves the experience for all the other diners, so it's a net win.
- tomjen3 13y agoBecause those who would sign up with them would be 1 geek with an ip address and 200 scammers who didn't want to pay 10 bucks for a domain. I imagine I would have trouble renting a car with cash, even though it would allow more customers.