DEV Community

Discussion on: Using Array.Reduce to Streamline Your JavaScript Object Validations

Collapse
spock123 profile image
Lars Rye Jeppesen

Frontend form validation is not done for security, it's for user experience.

Backend validation is security, ideally frontend validation should be so good that non-malign users will mostly never hit those backend validation errors.

Imho frontend and backend validations serve completely different purposes and cannot directly be compared.

Thread Thread
ziizium profile image
Habdul Hazeez

Frontend form validation is not done for security, it's for user experience.

Frontend form validation is a mixture of good user experience with security in mind.

Thread Thread
spock123 profile image
Lars Rye Jeppesen

Respectfully, frontend validation has absolutely zero to do with security.