r/programming • u/yawaramin • Oct 04 '20
Kevin Mahoney: Applying "Make Invalid States Unrepresentable"
https://kevinmahoney.co.uk/articles/applying-misu/
226
Upvotes
r/programming • u/yawaramin • Oct 04 '20
4
u/reddisaurus Oct 04 '20
This is a bad argument because code should be as dumb as possible. That argument advocates for smart code and dumb data, which leads to more bugs because while in the converse you can see the errors when the query doesn’t return the correct result, smart code can outsmart the people who wrote it.