2 ms·
I haven't in a huge way, but I have definitely shared constants, utility functions, and some application logic that are used identically server-side and client-
by crazygringo 15y ago
I haven't in a huge way, but I have definitely shared constants, utility functions, and some application logic that are used identically server-side and client-side.
It's probably not a HUGE boost in productivity, but it does feel really, really nice. And just knowing you can take your server-side data structures, trivially insert them into client-side scripts with JSON.stringify() or Ajax calls, and have the same helper libraries you use server-side be able to operate on them client-side, makes it so easy and flexible.
(I'm working on a project that uses IcedCoffeeScript both server-side and client-side, which lets us use the same async event-handling model on both sides as well -- another plus.)