4 ms·
Validating in multiple places doesn't mean 2x the code. You can validate on both the client and the server using the same code. One of the charms of server-side
by code_biologist 2y ago
Validating in multiple places doesn't mean 2x the code. You can validate on both the client and the server using the same code. One of the charms of server-side JS.
- yawaramin 2y agoThose charms can turn tiresome rather quickly once you discover those server-side JS libraries you're popping like candies are adding bloat and security vulnerabilities once they're shipped to the client side.
- pier25 2y agoYes, in some cases when you don't need a trip to the server. But you're also bloating the client for no great benefit.