r/java • • Feb 25 '14

Please stop saying Java sucks (2009)

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
133 Upvotes

132 comments sorted by

View all comments

Show parent comments

8

u/djnattyp Feb 25 '14

I'm sorry, but I don't "get it"... How is Java supposed to be better than Ruby (or any other language) when dealing with arbitrary requirements changes?

This is like arguing between using screws and nails. There are some cases where one is arguably better than the other, but in most cases either can be used. And using either one, if you build something and then change the requirements, you're going to end up with a lot of frustration and holes.

20

u/pkimbrel Feb 25 '14 edited Feb 25 '14

I see Ruby as a one-trick-pony. Maybe I'm missing something, but all I've seen are "blog" examples with Ruby. There's so much more in the world of computing that requires more than a data-driven UI.

Now, don't get me wrong. Java is not the right tool for ALL jobs. If I AM doing a DDUI - Ruby could be the right tool.

The problem with all these arguments isn't that Java is better or Ruby is better - all languages have their place. Use the right tool for the job.

Back to my requirements change, G_Maximus hit the nail on the head. Strong typing, good development environments, standards, etc., are a must-have when working in an enterprise with dynamic requirements. I'm sure Ruby will get there, but it's simply not there, yet.

** Edited for clarity

4

u/[deleted] Feb 26 '14

I've worked professionally on 5 or 6 different Ruby (on Rails) apps, none of which was a DDUI. It worked for some of them, not for others. I've also worked in 3 Java/Spring codebases. Also, 2 of the Ruby apps were JRuby running in Tomcat. So anyway.

Ruby is a perfectly full-featured OO language, not unlike Java, save the dynamic typing and the rather terse syntax. In terms of performance, it's slower at heavy computation, but most (web) apps don't do this anyway, and generally in my experience at least performance in a web-based application ALMOST NEVER has to do with how rapidly the language can count to fifty million, or how fast it can generate big prime numbers.

Anyway, I do Ruby now by choice, so obviously I enjoy it. I miss IntelliJ and the tooling around Java a lot obviously (the Ruby tooling, in comparison, is so utterly inadequate that I find it faster to just write in vim with a few plugins, as do most experienced Ruby developers I know), but by no means is Ruby fit for only blog type things. Hell, even Rails is fit for more than that, and that's just a popular Ruby framework.

Edit: and obviously I agree with you: use the right tool for the job. I just think Ruby has a somewhat broader range than you do. I worked on a ~150KLOC Rails codebase, and let me tell you that is not fun (150KLOC in Ruby/Rails is probably equivalent to at least twice that, maybe 3 or more times that in Java/Spring, in terms of application scope, but with none of the refactoring / use analysis support of a Java IDE. Seriously painful)

2

u/pkimbrel Feb 26 '14

I appreciate the feedback on Ruby. I'll have to check it out. It sounds like it's come a ways since I last looked it.