Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Rails Duck
Rails Duck
8,545 Points

Node.js vs Ruby on Rails

So, for web development, I want to know which one is better to learn: Node.js (along with all of the other stuff that comes with it in the Mean Stack) or Ruby on Rails.

I like the general 'look' of the code in Ruby better (as I think a lot of you would agree with) but the simplicity in Express.js is so much better than in Ruby on Rails.

Pretty much this is what I think:

Ruby: Awesome language, Horrible framework JavaScript: Medium language, Pretty good framework

Which one should I pick and, if possible, is there a way to combine Ruby (Rails) and JavaScript (Node.js)?

2 Answers

So iam going to be a bit biased in this since i am working with the mean stack track on here but i will say this. I would personally say go with mean. The main reason behind it is for me its easy to understand and learn. Its also great when it comes to not having to swap in between languages for databases or back end and front end. Esently being able to use JavaScript all the way through makes it really easy to work with. I would say just go for mean and see if you can work with it. Then if you feel its not for you go with ruby. Also i will say if you never worked with nosql and express before you will defiantly probably fall in love with out easy it is to set up and get going compared to working with sql and other frame works.

Rails Duck
Rails Duck
8,545 Points

I like the ruby scripting language but I hate rails. I hate javascript but I love the unopiniated nature of express.js. Any thoughts?

I would say that more than likely you wont find that perfect language. But i would say if you hate the language you wont want to learn it and will have a tough time focusing on it. But if you like the language you will be more willing to put up with the frame work. So i would say go wit ruby if you feel that you like the language over javascript.