File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Learning two languages this year Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Learning two languages this year" Watch "Learning two languages this year" New topic
Author

Learning two languages this year

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey,
I'm considering to learn two programming languages this year.
What I already know are: Java, Groovy and good familiarity with Python
Languages on my paper is:
Scala, Clojure, Ruby and Haskell
I want a language that will magnifies my lenses.
But since I'm posting in Ruby forum, I'm considering to give it a shot to see why many people are talking about it.
The one thing discouraging me is it seems to me that all the Ruby talks revolve around one thing: Rails framework
It looks like Ruby has nothing in the ecosystem except this framework.
Python on the other hand has many many eggs under it.
I would like to hear your opinion and stories.
Thanks.
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I am not using rails in my current development.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

I've been doing Ruby the last year and did Groovy the year before.

Most of the projects have been Rails but one project was actually all QA work using Ruby to write automated tests against a Java app (pretty much doing something like Selenium but with more control over the testing environment). For that project we used the Watir framework.

Ruby was a pretty easy transition from Groovy syntactically but I've found meta-programming to be more natural in Ruby.

The Ruby Koans is a fun way to get started with some of the Ruby basics:
http://github.com/edgecase/ruby_koans

If you run into anything please post it here. I promise to do better at checking in each day if I know there might be some interesting issues to help with.


A good workman is known by his tools.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

I started with Scala
It is really a neat and powerful language, I like this OO/Functional marriage.
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 459
    
    1
am planning to learn Groovy this year.. any comments??


Vinod Tiwari | Twitter
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Comments like what?
What you want to know?
Dilipkumar Jadhav
Greenhorn

Joined: Apr 18, 2009
Posts: 5
Hi John,
Comments like what?
What you want to know?


1. Is Groovy the same performance wise (speed of execution) as Java?
2. If features such as Closures are going to be added to Java 7 as pointed here, wouldn't it make Groovy's syntactic ease redundant?
3. I really do want to learn Groovy since it looks like a fun & easy language to use syntactically, however, which IDE would you use for Groovy development? I currently use Netbeans but Groovy support there was flaky at first. Now, the IDE does things which are inexplicable sometimes (such as throwing errors at will in Groovy code or not recognizing variables and then everything turning to normal after an IDE restart).

Personally, I am considering a choice of learning between Groovy & Scala.

Thank you for your time and consideration.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

1. If you search this forum you will find many posts discussing Groovy performance but in general Groovy performs slower than Java due the dynamic nature of Groovy.
But Groovy performance is becoming better and better with each release and it seems that Groovy 1.7.1 outperforms any Groovy release.
2. I'm not the authority to talk about Groovy but no, I don't think Groovy will be affected if Java 7 will have Closures.
Groovy is not a parasite on Java's body, it is an independent entity.
3. I use IntelliJ for all my development (Java, Groovy and Scala), IntelliJ worth every penny you pay.
Hope this helps.
Breno Salgado
Greenhorn

Joined: Nov 05, 2008
Posts: 11
Im still learning rails\ruby, but something that caught my atention while I was looking into pragmatic's bookshelf is that they've got a book called "everyday scripting with ruby", about, well, making scripts in ruby to help you in your everyday life

maybe this will catch your interest too, as you mentioned about ruby being seemingly one-purposed.... I plan on getting this book after Im more familiarized with rails

here's the link about the book
http://www.pragprog.com/titles/bmsft/everyday-scripting-with-ruby


Breno Santos Salgado -> Brasil, Brasilia, DF.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

That's a great book, Breno. It was the first one I bought while learning Ruby. I especially like the couple of short chapters that illustrate the methods on Hash and Array.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Learning two languages this year
 
Similar Threads
Rails vs. J2EE vs. M$ .NET
Why learn Ruby ? what's the benefits over other languages ?
Mine and Jungle
A few Ruby questions
What do you think of Ruby/Rails?