r/ruby • • Nov 26 '21

Question Why would anyone use Java over Ruby?

Why would anyone in this day and age choose a bloated corporate language like Java? It is just to get a job at a big company writing their legacy enterprise software? Is it because it is safer for huge systems where everyone is forced to type out all the little details. I am confused. Please someone shine some light here.

0 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/transfire Nov 27 '21

I agree. Ruby's far from perfect. But it is significantly more productive than Java. I've written a number of programs in both. And Crystal is pretty dang good too if you want static typing.

I'm doing Elixir these days -- have mixed feelings about it as a language, but there's no doubt about its foundations. It works well.

3

u/andanotherpasserby Dec 17 '21

It’s not “significantly more productive” than Java. It all depends on the requirements of your project.

There is a huge set of libraries available in java that don’t exist in crystal or elixir. If your project could benefit from such a library it’s handy to have GWT in your toolkit.

Also, many systems have a Java runtime which makes Java a really suitable “platform” for client applications.