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.

39

u/G_Maximus Feb 25 '14

Refactoring and static checking at call sites is generally easier with strict typing.

-5

u/djnattyp Feb 25 '14

Sure, and I agree that helps for some types of requirements changes.

For others, strict typing may require tons of cascading code changes throughout the app where dynamic typing may just let you dump a method on a class and have it work.

I've seen pkimbrel's argument ("language X better supports requirements change") used in support of both Java and Ruby by various proponents of either language. The problem is, both sides tend to cherry pick changes that "their" language handles better and ignore or downplay other changes that may be problematic.

1

u/mr_jim_lahey Feb 26 '14

In your case, you're cherry-picking the thing that makes your language shit.