| Author |
Beginning Ruby Question
|
paul nisset
Ranch Hand
Joined: May 13, 2009
Posts: 80
|
|
From what I understand, Ruby makes developing web apps a quicker process than developing them with than Java.
What can Java do that Ruby can't or when would you use Java instead of Ruby?
Thanks,
Paul
|
 |
Himalay Majumdar
Ranch Hand
Joined: Sep 28, 2008
Posts: 324
|
|
|
I hope this link will give you a good idea.
|
SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
|
 |
paul nisset
Ranch Hand
Joined: May 13, 2009
Posts: 80
|
|
I'll check it out.
Thanks.
|
 |
Peter Cooper
Author
Greenhorn
Joined: Jul 17, 2009
Posts: 25
|
|
What can Java do that Ruby can't or when would you use Java instead of Ruby?
As I'm not a Java developer I can't answer too authoritatively on this, but if you're using JRuby (a JVM implementation of Ruby) there are less reasons to use Java if you're used to Ruby than there ever were before. With JRuby you can use Java libraries directly from Ruby. That said, if you're talking "regular" Ruby, you typically wouldn't use it for performance intensive operations or, in my opinion, on "extremely large" enterprise projects where the organization of the project is almost more important than what it actually does ;-)
|
Author of Beginning Ruby (Apress): http://bit.ly/t31ag
Editor of Ruby Inside and RubyFlow
|
 |
paul nisset
Ranch Hand
Joined: May 13, 2009
Posts: 80
|
|
Thanks for your thoughts .
I was asking because the complexity of Java seems overkill for a lot of my projects . Many of which could probably could be handled by a simpler framework like php or Ruby.
My concern is that there are lot of technologies that do similar things and there is a real 'flavor of the day' aspect to development, especially when you start looking at job postings.
|
 |
Michael Sullivan
Ranch Hand
Joined: Dec 26, 2003
Posts: 235
|
|
One thing I'd point out is that Ruby as a language has much better support for files and text... meaning XML parsing is much, much nicer in Ruby than in Java. When you get up to the web framework (Rails), there are well established gems that can handle this quite well.
Back to Ruby though, I've found another area which feels a lot more comfortable: Ant tasks. Most of what I ask Ant to do feels a lot more natural in Ruby, mainly because it isn't far from basic Unix commands. Basically, all those shell/perl scripts I've written over the years... I'd love to have them in Ruby instead.
|
 |
 |
|
|
subject: Beginning Ruby Question
|
|
|