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

Programmer Humor

26629 readers
1534 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
you are viewing a single comment's thread
view the rest of the comments
[–] who@feddit.org 5 points 1 month ago* (last edited 1 month 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.