tag:blogger.com,1999:blog-7371895490737388670.post5858472154336806623..comments2023-05-04T00:35:27.914-05:00Comments on Scratching my programming itch: Groovy vs Java difference provides a WTF momentMike Millerhttp://www.blogger.com/profile/09697567698545249690noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-7371895490737388670.post-20143269546746967852011-05-23T07:27:00.073-05:002011-05-23T07:27:00.073-05:00Thanks, Alexander. Enough of a 'gotcha' t...Thanks, Alexander. Enough of a 'gotcha' to be documented by the Groovy team but I get your point! :-)Mike Millerhttps://www.blogger.com/profile/09697567698545249690noreply@blogger.comtag:blogger.com,1999:blog-7371895490737388670.post-70550343770802798702011-05-23T02:25:37.601-05:002011-05-23T02:25:37.601-05:00Hardly a "gotcha", closures are an absol...Hardly a "gotcha", closures are an absolutely basic construct when working with Groovy. You should be able to recognize the closure syntax when you see it.Alexander Malfaithttps://www.blogger.com/profile/04897760061888752985noreply@blogger.comtag:blogger.com,1999:blog-7371895490737388670.post-91685987841881143772011-05-21T19:39:49.596-05:002011-05-21T19:39:49.596-05:00Not common but tricky moment is when you hit dynam...Not common but tricky moment is when you hit dynamic dispatch. It is really hard to get it in normal life, and even then it probably means that you had error in your Java code, but it is possible that after moving to Groovy different methods will be called than in Java ;)Krzysiekhttps://www.blogger.com/profile/03930625629870670860noreply@blogger.comtag:blogger.com,1999:blog-7371895490737388670.post-83215184122269191582011-05-21T14:19:31.661-05:002011-05-21T14:19:31.661-05:00Well written Groovy code is much more readable. T...Well written Groovy code is much more readable. There is a lot less ceremony and cruft to get in the way.<br /><br />Poorly written Groovy code looks like Java IMHO.Dean Del Pontehttps://www.blogger.com/profile/17879654715567414601noreply@blogger.comtag:blogger.com,1999:blog-7371895490737388670.post-44469366560249035842011-05-21T10:20:28.313-05:002011-05-21T10:20:28.313-05:00to me groovy look more confusing and more like a s...to me groovy look more confusing and more like a scripting language. Java has that neck of readability and clarity which is not present everywhere, nice compilation by the way.<br /><br />Javin<br /><a href="http://javarevisited.blogspot.com/2011/01/how-classpath-work-in-java.html" rel="nofollow">How classpath works in Java</a>Javin @ java synchronization tutorialhttp://javarevisited.blogspot.com/2011/04/synchronization-in-java-synchronized.htmlnoreply@blogger.com