Summary
A. Sundararajan compiled a comparison of Java, Groovy, and Ruby syntax and programming constructs. Written for the Java developer, he provides 33 points of comparison for these languages, and includes short code snippets to illustrate each syntax elements. While still a work in progress, it can serve as a quick introduction to these languages.
Advertisement
In a recent blog post, A. Sundararajan wanted to give quick reference points in Ruby and Groovy syntax for Java developers. He compares these languages on 33 specific syntax features, showing that Ruby and Groovy support a few more features than the Java language. Apart from those few features, the main difference seems to be Java's relative verbosity in syntax.
While this comparison is written with a Java developer in mind, it doesn't show or highlight differences in these languages that go beyond mere syntax. In many ways, those difference are more important than syntax.
What are your favorite Ruby or Groovy idioms that you find hard to express elegantly in Java?
> <p>While this comparison is written with a Java developer > in mind, it doesn't show or highlight differences in these > languages that go beyond mere syntax. In many ways, those > difference are more important than syntax.</p>
The only conclusion I have is that those languages are almost identical. Their differences do not really matter a lot for realizing a product.