Hacker News new | ask | show | jobs
by pphysch 1205 days ago
That's nonsense. There are many validations that you don't trust to client to handle (or will require API calls, making "exact same" an unreasonable expectation). Ultimately, frontend validation is for UX and backend validation is for security.

Different concerns, different capabilities, different code.