Re:Boeing 737 MAX crash and the rejection of ridiculous data
by noir_lord on Wednesday April 10, 2019 @04:43PM
(#19628590)
I inherited a system that let you put AAA in the product price field and would persist it.
Validation is hard to get right so they simply didn’t try, not even common sense.
I’ve spent years thinking about the optimal way to structure validation and I’ve never come up with an approach I really like on an architectural level so I do the usual approach of simple sanity checks on the client and proper validation against business logic on the server but even that isn’t as isolated as I’d like.
Validation is hard to get right so they simply didn’t try, not even common sense.
I’ve spent years thinking about the optimal way to structure validation and I’ve never come up with an approach I really like on an architectural level so I do the usual approach of simple sanity checks on the client and proper validation against business logic on the server but even that isn’t as isolated as I’d like.