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

Programmer Humor

25885 readers
694 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
[–] ChaoticNeutralCzech@feddit.org 7 points 4 days ago (6 children)

What kind of "light validation"? I'm guessing a .*@.* regex match.

[–] TomasEkeli@programming.dev 13 points 4 days ago* (last edited 4 days ago) (4 children)

Almost correct. ^.+@.+$

Too hard to validate properly to be worth it. Even if it is technically valid that's insufficient. It must also work, and the easiest way to test that is to use it and verify that the user got what we sent.

[–] GreenKnight23@lemmy.world 5 points 4 days ago (1 children)

I see you accept lemmy handles.

[–] TomasEkeli@programming.dev 9 points 4 days ago

if i can email them and the user gets it - fine by me

load more comments (2 replies)
load more comments (3 replies)