News for hackers. Stuff that matters.
Re:Monorepos: Please don’t by PeterisP on Thursday January 03, 2019 @10:08AM (#18815611)
The classic reason for any validation is that you want the validation to be done in the frontend (to save a network roundtrip and provide better, immediate feedback), on the backend (so that if the frontend is compromised and maliciously circumvents that validation, it still gets validated), and both of the validations to be the same to prevent inconsistencies.

A good way to fulfil those requirements is to have the exact same function available in both places.

There are no comments on this comment yet.