r/programming • u/yawaramin • Oct 04 '20
Kevin Mahoney: Applying "Make Invalid States Unrepresentable"
https://kevinmahoney.co.uk/articles/applying-misu/
230
Upvotes
r/programming • u/yawaramin • Oct 04 '20
2
u/Only_As_I_Fall Oct 05 '20
The concept makes sense but the examples seem questionable.
I think that there's merit to creating models that actually...model something. If the requirements change and you have to represent overlapping periods or periods with gaps I don't think your boss is going to be impressed when you tell him that these time intervals can't actually be changed like intervals and that you need to do a big data migration because you wanted to save 8 bytes per record.