4 ms·
I don't know why JRuby + Rails gets no love. JRuby is similar to Groovy but the Rails ecosystem is far far better than Grails. I have worked on all three framew
by rockyj 14y ago
I don't know why JRuby + Rails gets no love. JRuby is similar to Groovy but the Rails ecosystem is far far better than Grails. I have worked on all three frameworks and I think -
- The Rails ORM (ActiveRecord) is far more superior and mature than ANORM or anything out there
- The Rails templating system is super easy and feature rich
- Rails has awesome libs like Devise (Authentication), Cucumber (BDD) and Capybara (UI Testing)
- The argument that Ruby is slow is not really valid with JRuby + Torquebox. Yes, it cannot match Java but for most apps it is sufficiently fast.
All in all, I have been trying to find a better combination than Rails + JRuby but I cannot find any. If pushed against a wall I would only say that for large projects some sort of type safety helps which Scala can provide but prepare for some pain while development (when compared to JRuby + Rails ecosystem).
- eeperson 14y agoI'm really surprised that you would consider ActiveRecord more mature and superior to anything else. I've always considered it the weakest part of Rails. It doesn't include support for foreign keys (you can ad it with a 3rd party plugin but I was really surprised that it wasn't included) and it gives you no control over which fields are lazy loaded. Am I missing something? Why do you consider it superior to everything else?
- rockyj 14y agoAbout foreign keys - http://guides.rubyonrails.org/migrations.html#active-record-and-referential-integrity http://guides.rubyonrails.org/migrations.html#active-record-... About Lazy Loading at field level it is not really needed in most scenarios. You can do it with your own code if you wanted it that way. Edge case scenarios may be handled differently in most ORMs however with Active Record I never felt the need to write SQL ever. Also for simple checks I use the Rails console to see data whereas with other ORMs I had to open a SQL console.