4 ms·
>"name missing, it must be provided" then you have failed input validation as that sort of thing should be picked up on much earlier in a request lifecycle IMO.
by asdasf 13y ago
>"name missing, it must be provided" then you have failed input validation as that sort of thing should be picked up on much earlier in a request lifecycle IMO.
Why? What is wrong with letting it get picked up where you already have the validation anyways instead of repeating the validation in two different languages?
- joevandyk 13y agoWhat if there's two problems in the form? You generally just get one error from the database at a time.
- asdasf 13y agoThat's really the only reason I can see to do it. But I can see plenty of cases where I don't care about that, so I don't think "you failed input validation" is at all accurate. The consequences are a more annoying UX, assuming it is something a user is interacting with. That doesn't sound like outright failure.