3 ms·
A big chunk of UI work is typically input validation which should happen client side and server side. And you'll usually need regex for this at somepoint. Havin
by tomelders 11y ago
A big chunk of UI work is typically input validation which should happen client side and server side. And you'll usually need regex for this at somepoint. Having the same validation logic and regex engine on either side is a huge win.
- Keats 11y agoIn practice that depends on the app quite a bit, something like http://marshmallow.readthedocs.org/en/latest/ http://marshmallow.readthedocs.org/en/latest/ makes validation a breeze on the backend for an API and you will need the database for more complex ones anyway. Again that probably depends on the app, but the only duplication in mine right now would be the password length which is a 1 character change.