But wait! Rails is a Ruby framework, isn’t it? Where is Node.js’s framework? It’s called Express JS (there are more but Express is used more than half the time). No one wants to write in any vanilla version of a language. That’s way too much work.
So I can hype this up all I want but why not look at the code and see for yourself that this isn’t going to be that much of a stretch for Rails users.
Express is also set up so that the model-view-controller design pattern is easy to implement. Restful routing is implemented almost exactly the same as well. Look at this route in Node.js:
The purpose of all this is to show that learning one of the most popular backend languages to bolster your skillset and resume will be a walk in the park… well that’s actually kinda not easy in 2020. More like ordering something on Amazon. It will be that easy. Amazon easy.
Don’t worry, I haven’t forgotten about Active Record. First, let’s address the name. Who named Active Record? Did their imagination get flayed by corporatism such that all they can use are lower case letters, primary colors, and names like ‘Active Record’? Rant over. Node.js has access to an Object Relationship Mapper (ORM) known as Sequelize! God, that name feels good after Active Record… Sequelize is great. It does pretty much the same things that Active Record does without the syntax shortcuts (as far as I am aware).
This should look super familiar to Active Record users. A little ad hoc but it is a step by step example.
The main takeaway that I want my would-be Rails readers to have is that Node.js is super popular and we have the skills to quickly pick up another backend language if need be in our future job hunts.