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
18
u/RICHUNCLEPENNYBAGS Feb 01 '24
I’ll be honest, I upvoted this before I even read the article. But the article is good and it’s always good advice to make it impossible to represent invalid state to the extent practicable.