Ask HN: What is the "Ruby on Rails" of the Node world?
I recently started using Rails for a project and it is such a breeze to get the basics setup quickly. DB, CRUD APIs, and everything. I am curious if there is anything similar to it for Node runtime.
8 comments
[ 0.23 ms ] story [ 16.2 ms ] threadIn particular, Ruby allows adding methods to any object (like Smalltalk). For example you can add methods to integers and write FizzBuzz where:
outputs 'Fizz' and outputs 'FizzBuzz.'Internally, Ruby on Rails uses this aspect of Ruby to modify the builtin MethodMissing method with whatever code needs to be added to make it behave the way you expect.
While it is theoretically possible to do the same thing in any Turing complete language, it is very difficult in most others. Including EcmaScript/Javascript/Node. This doesn't mean you can't have a very useful web framework in these other languages. They can even be highly opinionated. But that opinion can't be equivalent to the opinion underlying Rails.
Using Ruby on Rails is the best way to get the power of Ruby on Rails...if you can of course. Maybe your boss insists on Node, .Net, or Larvel. Good luck.
I'm not saying that's what you want to do. But Ruby on Rails uses that technique to modify the MethodMissing method of its objects. This makes it practical to implement the behaviors that make Ruby on Rails productive for many users.
Yes modifying objects might be a footgun. But if you want the architecture of Ruby on Rails, using another language might be a worse footgun. Or not, it's your code.