by eluos on 8/14/13, 2:14 PM with 3 comments
If you're starting off on a new project, what does your stack look like? Is Rails your go to framework, or is node.js more appealing?
by thecommentator on 8/14/13, 2:22 PM
Is your team heavy with javascript developers? Do you have a need for an event-driven framework that can handle large load? Great, here comes node.
Is speed of development and a wealth of 3rd party libraries for almost any need critical to your ability to get started? Well, RoR has you covered.
Every language has strengths and weaknesses. Picking a tech stack is a decision that should be based on your needs.
by declandewet on 8/14/13, 2:46 PM
One reason I choose Node over Ruby/Rails is the Websocket libraries available in Node. Here's an example of why: I've been exploring a lot of JavaScript lately. Backbone.js is nice, but it doesn't have nice data-binding. Angular.js is really nice, but it's "templates" (directives) cannot be parsed by a server, so you couldn't serve the same content from the server. Ember is nice, but it's a little slow compared to the other frameworks (from my experience with it, I know it will improve).
I prefer Backbone + Handlebars because I can serve the same templates as views from the server if I adhere to a rule that essentially means each page of the app is a separate Backbone template associated with it's own view. These can still have subviews, but the client will handle that. The only thing I don't like is the data binding.
So, lately in my apps, I've found myself writing simple data binding "plugins". But instead of detecting regular events - I bring socket.io into the mix. This makes for really fast data binding, plus everyone can see the changes.
Having everything in JavaScript prevents me from straying between different programming languages and distracts me less, and for the socket work it just makes so much more sense to me.
by seren on 8/14/13, 2:28 PM