Forums Register Login

Beginning Ruby Question

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
I hope this link will give you a good idea.
+Pie Number of slices to send: Send
I'll check it out.
Thanks.
+Pie Number of slices to send: Send
 

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 ;-)
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.

If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1675 times.
Similar Threads
Java and Ruby
Is Ruby easier to learn than Java?
Ruby as multi purpose scripting language?
A few Ruby questions
Ruby on Gaming
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:54:16.