770
you are viewing a single comment's thread
view the rest of the comments
[-] who@feddit.org 3 points 6 hours ago* (last edited 6 hours ago)

Use a library

Please, no. If someone wrote email address "validation" complex enough to warrant a library, then their code is almost certainly wrong.

or check for only the @ and then send an email confirmation.

Yes. Do that.

If your boss demands a more detailed check at input time, then make it display warnings, not errors, and continue to the confirmation sending step if the user chooses to ignore the warning.

this post was submitted on 18 Aug 2025
770 points (99.1% liked)

Programmer Humor

25802 readers
2273 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS