Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails or Grails? [closed]

Grails vs Rails. Which has better support? And which one is a better choice to develop medium size apps with? Most importantly which one has more plug-ins?

like image 356
Ratn Deo--Dev Avatar asked Sep 17 '08 10:09

Ratn Deo--Dev


People also ask

Is Grails similar to rails?

Groovy and Grails have emerged as competitors to Ruby and Rails that tightly embrace the Java language and platform. For example, while Grails copies many ideas from Rails, it does so by leveraging existing frameworks such as Spring and Hibernate to achieve this.

Is Grails a good framework?

Grails is superb because it allows developers to concentrate more on actual application requirements and spend less time configuring the framework. Grails provide tools for development, and it is built based on tools like: Quarts, Hibernate, Spring, and Gradle for library management.

Is Groovy similar to Ruby?

Apache Groovy is a Java-syntax-compatible object-oriented programming language for the Java platform. It is both a static and dynamic language with features similar to those of Python, Ruby, and Smalltalk.

Whats new in Grails 5?

The Grails Foundation has released Grails 5.0 featuring deprecation of the "dot"-Based Navigation to configuration; default autowire by type in Data Services; the decoupling of Grails Gradle Plugin from the grails-core ; and the removal of the Grails Gradle Publish plugin from the grails-plugin applications.


2 Answers

One other thing worth mentioning: the design philosophy of both framework is somewhat different when it comes to the model. Grails is more "domain-oriented" while Rails is more "database-oriented".
In Rails, you essentially start by defining your tables (with field names and their specifics). Then ActiveRecord will map them to Ruby classes or models.
In Grails, it's the reverse: you start by defining your models (Groovy classes) and when you hit run, GORM (Grails ActiveRecord equivalent) will create the related database and tables (or update them). Which may also be why you don't have the concept of 'migrations' in Grails (although I think it will come in some future release).
I don't know if one is better than the other. I guess it depends on your context.

This being said, I'm still myself wondering which one to choose. As Tom was saying, if you're dependent on Java you can still go for JRuby - so Java reuse shouldn't be your sole criterion.

like image 163
Rollo Tomazzi Avatar answered Oct 05 '22 14:10

Rollo Tomazzi


I guess if you are a Java developer and want to have access to all the existing enterprise Java libraries and functionality... go with Grails.

like image 27
Scott Anderson Avatar answered Oct 05 '22 16:10

Scott Anderson