• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Beginning Ruby Question

 
Ranch Hand
Posts: 500
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I hope this link will give you a good idea.
 
paul nisset
Ranch Hand
Posts: 500
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll check it out.
Thanks.
 
Author
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ;-)
 
paul nisset
Ranch Hand
Posts: 500
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Bring out your dead! Or a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic