<p>My company is in the process of starting down the <strong>Grails</strong> path. The reason for that is that the current developers are heavy on <strong>Java</strong> but felt the need for a <strong>MVC-style language</strong> for some future web development projects. Personally, I'm coming from the design/usability world, but as I take more "front-end" responsibilities I'm starting to feel the need for learning a language more intensively so I can code some logic but especially the front-end code for my UIs and stuff.</p>

<p>I've been trying to get into <strong>Python/Django</strong> personally, but just never invested too much time on it. Now that my company is "jumping" into Grails I bought the "<em>Agile Web Development with Rails (3rd Ed - Beta)</em>" and I'm starting to get into <strong>RoR</strong>. I'd still like to learn <strong>Python</strong> in the future or on the side, but my biggest question is: </p>

<ul>
<li>Should I be learning RoR, and have a more versatile language in my "portfolio", knowing that my RoR knowledge will be useful for my Grails needs as well??</li>
</ul>

<p>-OR-</p>

<ul>
<li>Should I just skip RoR and focus on learning Grails that I'll be needing for work soon, and work on learning RoR/Django (Ruby/Python) later?</li>
</ul>

<p>Basically the question revolves around the usefulness of Grails in a non-corporate setting and the similarities between Rails and Grails. (and this, while trying to avoid the centennial discussion of Python vs Ruby (on Rails) :))</p>

[{'answer_id': 5095, 'author': 'CodingWithoutComments', 'author_id': 25, 'author_profile': 'https://Stackoverflow.com/users/25', 'pm_score': 1, 'selected': False, 'text': "<p>You should just skip RoR and focus on learning Grails that you'll be needing for work.</p>\n"}, {'answer_id': 5125, 'author': 'Camilo Díaz Repka', 'author_id': 861, 'author_profile': 'https://Stackoverflow.com/users/861', 'pm_score': 2, 'selected': False, 'text': "<p>Just skip RoR. There are really not a lot of similar things(besides the name)</p>\n\n<p>I certainly believe that being enough familiar with Java, plus some experience programming with a dynamic language is more than enough if you plan to do serious development with Grails.</p>\n\n<p>Comparing just only views(taglibs in Grails, RHTML in RoR) and the persistence stuff(GORM vs ActiveRecord) is just too different in the core, to invest time learning the nitty gritty details of RoR. Just dive into Grails, you won't regret.</p>\n\n<p>Edit: corrected typo.</p>\n"}, {'answer_id': 5132, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 3, 'selected': False, 'text': '<p>Just a bit of a question, is the reason they are choosing Grails because Groovy is closer in syntax to Java than Ruby, or because they want access to Java?</p>\n\n<p>If it is the former, then I would say try to focus on Grails since that is what you will be using.  If it is the latter, you might want to see if the development team is open to using JRuby.</p>\n\n<p>I have never used Grails or Rails before, but I have used Groovy and Ruby before, and as a language I think Ruby is much cleaner and more consistent, and the team might enjoy production more.  As a platform, Rails has been out longer and has a lot of attention, so I would imagine it is a more stable platform to use with more fleshed out features.</p>\n\n<p>JRuby has full access to classes written in Java, so this is why I would say consider trying Rails.  If it is too late in the decision time to consider it then I guess you can just ignore this post.</p>\n\n<p>Basically, if you just want to hook in with Java, then JRuby is an option you should consider, but if the team is afraid of non-Java like syntax, maybe continue as is.</p>\n'}, {'answer_id': 18335, 'author': 'Ivan Arrizabalaga', 'author_id': 2249, 'author_profile': 'https://Stackoverflow.com/users/2249', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve been learning RoR and Grails and the latter is far easier to learn.</p>\n\n<p>Both frameworks share the same principles (agile, kiss, dry, duck typing and so..) but Groovy syntax is...well is simply great, something  you can learn and use in a blink of an eye.</p>\n\n<p>I truly feel that Grails has brighter future than RoR.</p>\n\n<p>PD: Just in case you find it useful, a college of mine it\'s working full time with Grails and has a blog with some tips:</p>\n\n<p><a href="http://dahernan.net/search/label/grails" rel="nofollow noreferrer">http://dahernan.net/search/label/grails</a></p>\n'}, {'answer_id': 19526, 'author': 'Ivan Arrizabalaga', 'author_id': 2249, 'author_profile': 'https://Stackoverflow.com/users/2249', 'pm_score': 0, 'selected': False, 'text': "<p>At a first glance you would think they are completely differente stories, since they are based on extremely different languages (Ruby and Groovy).</p>\n\n<p>Then, after reading a couple of tutorials, you'll realize they share the same principles, scaffolding, duck typing, .. and finally the same goal: \n   <strong>making agile programming feasible</strong>.</p>\n\n<p>If you already feel comfortable with terms like IoC and MVC, you'll find any of these options easy and exciting to learn.</p>\n"}, {'answer_id': 38773, 'author': 'Kevin Kaske', 'author_id': 2737, 'author_profile': 'https://Stackoverflow.com/users/2737', 'pm_score': 2, 'selected': False, 'text': "<p>I would learn both. They are both up and coming technologies. Learning RESTful coding is a real benefit in any language.</p>\n\n<p>I use GRAILS at work and RoR for side projects. I can say that the RoR community is much larger (I'm talking about RoR vs Grails not RoR vs Java) and very helpful.</p>\n\n<p>Short Answer: They are similar.... what could it hurt?</p>\n"}, {'answer_id': 40353, 'author': 'Hank Gay', 'author_id': 4203, 'author_profile': 'https://Stackoverflow.com/users/4203', 'pm_score': 1, 'selected': False, 'text': "<p>@Levi Figueira</p>\n\n<p>For one thing, Grails is far more flexible than Rails. Rails is difficult to use with a legacy DB because ActiveRecord has too many design constraints that many legacy DBs didn't follow. Grails, oth, can use standard Hibernate mappings, which can accommodate a much broader range of DB designs.</p>\n"}, {'answer_id': 47756, 'author': 'Andrew Whitehouse', 'author_id': 4890, 'author_profile': 'https://Stackoverflow.com/users/4890', 'pm_score': 1, 'selected': False, 'text': "<p>The Rails community has been very vocal in evangelising RoR, with the result that high expectations have been set and not always met (programmer productivity is good, but ensuring good performance once deployed isn't so easy).</p>\n\n<p>Grails has been designed as the scripted successor to Java, whereas the Ruby-Java integration used in JRuby on Rails, for example, has had to be retrofitted.</p>\n\n<p>I would suggest that you stick with Grails; it may not have the same glitz as RoR, but it's a pragmatic choice; you get improved productivity and the re-use of existing Java libraries.</p>\n"}, {'answer_id': 49105, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Jump straight into Grails.  I\'m sure Ruby/Rails is good but so in Groovy/Grails.  I recommend this book.</p>\n\n<p><a href="http://beginninggroovyandgrails.com" rel="nofollow noreferrer">http://beginninggroovyandgrails.com</a></p>\n\n<p>Remember the errata is online.  There are a couple of mistakes in the book.</p>\n\n<p><a href="http://beginninggroovyandgrails.com/site/content/errata" rel="nofollow noreferrer">http://beginninggroovyandgrails.com/site/content/errata</a></p>\n\n<p>Also, check out the 3 minute and 30 second demo of creating your first Grails app.</p>\n\n<p><a href="http://grails.org/Grails+Screencasts" rel="nofollow noreferrer">http://grails.org/Grails+Screencasts</a></p>\n\n<p>This tutorial will show you the basics.</p>\n\n<p><a href="http://grails.org/Quick+Start" rel="nofollow noreferrer">http://grails.org/Quick+Start</a></p>\n'}, {'answer_id': 90153, 'author': 'Peter Kelley', 'author_id': 14893, 'author_profile': 'https://Stackoverflow.com/users/14893', 'pm_score': 1, 'selected': False, 'text': '<p>Yes Grails is the way to go. RoR is good but it ties you in to the Ruby ecosystem. Part of the effort of learning a new framework or language is learning the class libraries as well as the language syntax. If your co-workers are all Java types you will be much better placed to receive help and support as they will all be speaking the same language as you.</p>\n\n<p>The other advantage to learning a bit of Groovy and Java is that web frameworks like GWT will open up to you. Grails has a GWT plugin and as a front end developer you will appreciate the ease of use and cross browser compatibility. </p>\n\n<p>Also there is at least one hosting company offering free Grails application hosting (<a href="http://www.mor.ph/" rel="nofollow noreferrer">http://www.mor.ph/</a>) which means that you can prototype sites at small data volumes before having to pay.</p>\n'}, {'answer_id': 96744, 'author': 'mbrevoort', 'author_id': 18228, 'author_profile': 'https://Stackoverflow.com/users/18228', 'pm_score': 1, 'selected': False, 'text': '<p>I favor Grails over Rails, but learning Rails will give you a more balanced perspective and actually open your eyes to overlooked things that are possible in Grails.</p>\n'}, {'answer_id': 288583, 'author': 'hendrixski', 'author_id': 24920, 'author_profile': 'https://Stackoverflow.com/users/24920', 'pm_score': 0, 'selected': False, 'text': "<p>I would say no, I'm learning Grails as well, and I've considered this as well, but just learning Grails is pretty big, plus learning Groovy (which granted is easy, but still gotta learn it right?) and all that... so learning Rails would have been just too much.</p>\n"}, {'answer_id': 1136430, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Yes if we compare grails and rails I would choose grails (I developed some intranet applications in grails).</p>\n\n<p>But Django is superior to both - as python is well hmm a perfect choice.</p>\n'}, {'answer_id': 1158483, 'author': 'Joshua Partogi', 'author_id': 141186, 'author_profile': 'https://Stackoverflow.com/users/141186', 'pm_score': 5, 'selected': True, 'text': '<p>Mmh, I don\'t know how to say this. Some people might bash me over this. </p>\n\n<h2>Language (Groovy and Ruby)</h2>\n\n<p>As a language I reckon Ruby is more funky compared to Groovy. Groovy only exists to ease Java programmer as you don\'t need to learn too much new syntax. But overall I reckon is not as funky as Ruby. Groovy wouldn\'t be the JVM language that is worth to learn based on attender\'s vote in this year\'s JavaOne but instead Scala is the one to go. Besides that, <a href="http://macstrac.blogspot.com/2009/04/scala-as-long-term-replacement-for.html" rel="noreferrer">the original creator of Groovy himself does not have faith in the language he created himself</a> in the first place. </p>\n\n<h2>Community and Job openings</h2>\n\n<p>As for the community, Grails community is not as big as Rails, though since the acquirement by Spring more and more people are using it in serious application.  Rails has more job openings in the market compared to Grails (that is if you want to invest in looking a new job). </p>\n\n<h2>The framework (Grails and Rails)</h2>\n\n<p>But, as a framework, if you really care about maintainability and need access to Java framework and legacy Java system, Grails is the way to go as it provides cleaner access to Java. Grails itself is built upon several popular Java framework (Spring &amp; Hibernate). Rails itself IMHO is funky like Ruby itself, but it\'s funkyness costs you maintainability. <a href="http://merbist.com/2008/11/09/merb-1-0-released/" rel="noreferrer">Matz himself prefers Merb over Rails 2</a> because Rails create a DSL on top of Ruby which is really against the Ruby philosophy. And I reckon because Rails itself is opiniated, which in turn if you don\'t have the same opinion as the creator, it might not fit your needs.</p>\n\n<p><strong>Conclusion</strong></p>\n\n<p>So in your case, learn Grails as that is the company\'s consensus (you need to respect the consensus) and if you still want to secure your job. But, invest some time learning Rails and Ruby too if you want to open a chance getting a new job in the future.</p>\n'}, {'answer_id': 3809621, 'author': 'yayitswei', 'author_id': 269238, 'author_profile': 'https://Stackoverflow.com/users/269238', 'pm_score': 0, 'selected': False, 'text': '<p>You might also want to take a look at <a href="http://clojure.org/" rel="nofollow">Clojure</a>, a JVM language that\'s just starting to get popular. It may be a good choice for a Java-based company since it\'s compatible with your old codebase, and has a lot of modern innovations going for it. There are some good web frameworks emerging, including <a href="http://github.com/weavejester/compojure/wiki" rel="nofollow">Compojure</a>.</p>\n'}]
['https://Stackoverflow.com/questions/5087', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/682/']