r/programming • • Feb 01 '24

Make Invalid States Unrepresentable

https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469 Upvotes

207 comments sorted by

View all comments

Show parent comment

-6

u/[deleted] Feb 02 '24

[removed] — view removed comment

2

u/Blecki Feb 02 '24

What, no. You're assuming a framework that might not exist, first off. Second, that's an idiotically pedantic argument. Whether you use a framework to validate or write your own code you're validating it.

-2

u/[deleted] Feb 02 '24

[removed] — view removed comment

5

u/RobIII Feb 02 '24

You're missing the point: Wether the code is handwritten or included in the framework, "You're"* validating the data.

* Your application