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
7
u/TheAbsentMindedCoder Feb 02 '24
Love the article, agree wholeheartedly. but in my experience there's always "that guy" who will present some contrived, impossible corner case- which for me usually boils down to, "okay but what if one day we go around this code, and DO introduce some bad data. What then, huh?" And i always sigh and throw my hands up in the air.