<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Groovy @ clintshank.javadevelopersjournal.com</title><link>http://clintshank.javadevelopersjournal.com/</link><description>(Groovy) My thoughts on software development.</description><copyright>Copyright 2009 clintshank.javadevelopersjournal.com</copyright><generator></generator><lastBuildDate>Fri, 02 Jan 2009 17:28:00 GMT</lastBuildDate><image><title>Groovy @ clintshank.javadevelopersjournal.com</title><url>http://res.sys-con.com/portlet/163/featured-blog-graphic-145.gif</url><link>http://clintshank.javadevelopersjournal.com/</link></image><ttl>360</ttl><docs>http://backend.userland.com/rss</docs><item><title>Groovy or JRuby?</title><guid isPermaLink="true">http://clintshank.javadevelopersjournal.com/groovy_or_jruby.htm</guid><link>http://clintshank.javadevelopersjournal.com/groovy_or_jruby.htm</link><pubDate>Sat, 24 Mar 2007 19:32:00 GMT</pubDate><comments>http://clintshank.javadevelopersjournal.com/console/comments/popup/?f=groovy%5For%5Fjruby</comments><dc:creator>Clint Shank</dc:creator><description><![CDATA[Which dynamic programming language should I introduce to a group of relatively young, inexperienced Java developers?  The choice is between <a href="http://groovy.codehaus.org/">Groovy</a>  and <a href="http://jruby.codehaus.org/">JRuby</a>.<p>Ruby and particularly Ruby on Rails has been hot for awhile now.  Ruby in the enterprise is becoming more accepted.  As Martin Fowler pointed out nearly a year ago in this <a href="http://www.martinfowler.com/bliki/EvaluatingRuby.html">blog entry</a> , some top minds in our field including Bruce Tate, Justin Gehtland, and Stuart Halloway have moved <a href="http://www.oreilly.com/catalog/beyondjava/">Beyond Java</a> .  Even one of my old mentors, <a href="http://gaffney.wsj2.com/">Mike Gaffney</a> , has repeatedly told me to bail on Java.  But I agree with Scott Davis as he points out in this <a href="http://www.nofluffjuststuff.com/s/podcast/18/nfjs-scott-davis-groovy.mp3">podcast</a> , Java is not dead.</p><p>The growing acceptance of Ruby is a strong reason to consider JRuby.  Being able to run Ruby on Rails apps on the JVM is very appealing.  But remember the context of the decision here.  We&#39;re talking about a group of developers whose only development language has been Java, and whose projects for the foreseeable future will run on the Java platform.  Groovy wins in this context.</p><p>There are lots of reasons to get excited about Groovy.  It too runs on the ever-improving JVM.  In fact, it was the first scripting language officially approved by Sun to run on the JVM.  It can be compiled to byte code or run in script form.  The interoperability is fantastic.  Developers can still use Java, its tools and familiar libraries such as <a href="http://www.springframework.org/">Spring</a>  and <a href="http://www.hibernate.org/">Hibernate</a> , where appropriate, and mix in Groovy, where that is more appropriate.</p><p>But what really makes this decision easy is the similarity in language syntax.  You can take a snippet of Java code, drop it into a Groovy file, and it will nearly work.  Then, you can take that snippet and start making use of Groovy language improvements such as closures to make the code more readable and <a href="/coding_by_intention.htm">intention revealing</a> .</p><p>So the decision is easy here.  Take the seamless step forward and introduce Groovy.</p>]]></description><category>groovy</category><category>ruby</category></item></channel></rss>