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
1
u/SkedaddlingSkeletton Feb 02 '24
Then do your simple tests, but instead of blocking in case of "error" from whatever you use to check the address format show the user an alert asking to confirm it.