Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
skeeter2020
on Sept 1, 2022
|
parent
|
context
|
favorite
| on:
Falsehoods programmers believe about email
IME it's the latter, but not because they are lazy, but because email validation is hard. The lazy regex was in the late 90's early 00's when any email that didn't end in .com, .edu or .net failed!
hoosieree
on Sept 1, 2022
|
next
[–]
The problem is insufficient laziness. Just check that the email contains an `@` sign, and validate later by corresponding with the address.
if "@" in email: send_confirmation(email)
shakna
on Sept 1, 2022
|
prev
[–]
Which is truly terrible. I mean, here's a valid email that was used in the early 90s:
sdchema!mhtsa!australia!chris@Nosc
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: