2 ms·
I would, but it definitely depends what for. I use it with sequelizejs (MySQL) at the moment in a biggish web app and it works really well. We have a LOT of for
by tluyben2 14y ago
I would, but it definitely depends what for. I use it with sequelizejs (MySQL) at the moment in a biggish web app and it works really well. We have a LOT of forms and complex validations, prefills, searches etc, which are a joy to do without having to write them in 2 languages because I want them on client and server. With supervisor and node-inspector, expressjs, passportjs, socket.io and so forth everything is just a joy.
This is already a part of the 'easy validations' but it comes in in a lot more places; being able to just shove the same code to client and server and have it run is really a win for me. Simplified, I have my own class libraries which are loaded both on client and server with most code the same and some different depending where I am, and without thinking I can just execute the same code everywhere; I even just send code via socket.io from server->client dynamically when it comes in handy and it's a better experience for the user.