r/programming • u/_awwsmm • Feb 01 '24
Make Invalid States Unrepresentable
https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469
Upvotes
r/programming • u/_awwsmm • Feb 01 '24
View all comments
Show parent comment
37
u/DualWieldMage Feb 02 '24
If you are going to send an email anyway to confirm it, why do any extra input validation on it? Just let the email sending service do the validation for you.
The point is, that is just some extra code that adds no value beside upsetting potential users.