3 ms·
(thinking more about web pages than apps here) are there any frameworks that let you re-use the same verification code on both client and server? i'm imaginin
by andrewcooke 15y ago
(thinking more about web pages than apps here)
are there any frameworks that let you re-use the same verification code on both client and server? i'm imagining some way to decouple the validation from the presentation and then run the validation part on both sides - i don't see why this wouldn't be possible with something like Node.js.
related, i guess that some frameworks (particularly ajax) support duplicating validation on client and server by automatically generating (different) client (javascript) and server-side code (python/ruby/java/...) from simple specifications (eg regexps). does anyone have good experiences with any of these?
- sequence7 15y agoWell it's not a framework but asp.net mvc can actually do pretty much exactly this with data annotations. http://www.asp.net/mvc/tutorials/mvc-music-store-part-6 http://www.asp.net/mvc/tutorials/mvc-music-store-part-6