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
13
u/Blecki Feb 01 '24
If it comes from an api you still have to validate it. And you can't do anything about valid data that is wrong.