4 ms·
at least one Node framework at the head of the pack, if for no other reason than it enables easy sharing between server and client-side logic I'm surprised thi
by moe 15y ago
at least one Node framework at the head of the pack, if for no other reason than it enables easy sharing between server and client-side logic
I'm surprised this still hasn't been seriously tackled. The major node frameworks (namely express) all seem to follow the old-fashioned rails-model which seems like an anachronism on that particular platform.
- AdrianRossouw 15y agoOur Bones[1] library for node.js does this, in most applications we have written probably in excess of 90% of the code is shared between server and client. We have written cloud based hosting systems[2], desktop applications[3] and more standard web applications with it. I think it wouldn't be too hard to make it possible to build phonegap'esque apps with it too. It's pretty great stuff, but it opens you up to very new and interesting problems due to the environment being so different. The client side has absolutely no concept of a 'request', and there is a lot of stuff that just can't be done on the client (is this email address unique?). The server side does not have the long running state that the client does, which causes another category of problems. I think it's going to become a more dominant approach, because it's just so damn convenient, but it's going to take a bit more time to properly 'crack' it. [1] bones : http://github.com/developmentseed/bones http://github.com/developmentseed/bones [2] mapbox hosting : http://mapbox.com/tour/ http://mapbox.com/tour/ [3] tilemill : http://mapbox.com/tilemill/ http://mapbox.com/tilemill/