Node.JS Vs Ruby on Rails


#1

Which is best ? Node.JS vs Ruby on Rails?


#2

Note that I’m primarily a Java dev so this is an external point of view, other with better experience/insight should probably answer here, but: I’d say this is a matter of preference… :grin:

NodeJS is neither a language nor a framework, but rather a platform built to execute Javascript code on the server side.

It has web frameworks of course, a lot of it! So you have to find the one you want to use, start learning it, etc… Comparing frameworks and distinguishing which ones will have the best community support, the longest lifetime and shortest learning curve can be tricky… With node you’ll start this journey from scratch (but it’ll be a flexible journey).

Also Javascript may be easy to learn at first (arguably) but has a lot of quirks and surprises. It is on the weaker side of the “strongly typed vs weakly typed” curve, so you can easily make mistakes without the compiler explicitly showing you where you did.

Ruby is a dynamic language that is considered elegant and very productive by its user base. It has a stronger type system and therefore may be more adapted to you, depending on your taste.

Ruby on Rails is the de-facto standard web framework there AFAIK, so the community is large and there’s less dispersion into hundreds of framework. The framework is opinionated, meaning it assumes you’ll build things “the Rails way”, but that can guide you and gives you great speed of development.

As I said, matter of level and preference, I’ll let Node and Ruby devs chime in :wink:


#3

Ruby programming language is more expressive that javascript, so it is very easy to express logic of your business domain in ruby. The resulting classes tend to be clear and form readable DSL, but in my opinion rails fits better monolith application types, and it will be harder to implement service (or micro-service) oriented application in rails.

So everything depends on type of your application, if you see it like business application with big state machines and complex logic, I would recommend rails. But if you need to build a network of isolated services with simple APIs and small responsibility, I would recommend node.js, java or golang, because all of them has pretty good built-in concurrency and network support.


#4

Hi @simonbasle @simonbasle,

Thanks for you answer my question. Now i have analyzed about both node.js vs ruby on rails and write content to my personal blog. http://agriyaservices.blogspot.in/2015/09/ruby-on-rails-vs-nodejs-which-to-use.html Thanks for your support.


#5

Also there’s article on this topic - Node.js vs Ruby on Rails: The Power Behind Technologies


#7

Mobile app developers prefer Node.JS, According to the latest compersion statistics of last 4 years’ data support Node.JS as the king in the mobile app development industry, Read Full Article Here: NodeJS vs Ruby on Rails comparison