r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

66

u/[deleted] Feb 22 '15

I'm going to address some of the points from the first page because I can't be bothered to read the rest.

[..] a VM that has a macroscopic startup time [..]

That doesn't mean anything for applications with a measurable runtime. If you're writing a web service, you don't really care about the 2 extra milliseconds it may need to start up. Meanwhile, overall system performance tends to be excellent.

For real-world production servers, it tends to require a fair amount of JVM tuning.

Nope. Haven't run into a situation where that was necessary. At worst you need to increase the maximum heap size for a program that needs a lot of memory. That's not fine tuning. That's common sense.

The language sucks, [..]

Literally nothing else said to back that opinion.

[..] Java culture is one of mediocrity and bad taste, with MetaModelVibratorVisitorFactory classes dominating.

Juvenile.

[..] top Scala engineers [..] are really freaking good.

So are the top Java engineers. What's your point?

The only real issue brushed by is that there tends to be a large number of bad to mediocre developers working with Java. I don't know why that's Java's fault. Bad programmers follow success. Whichever language is in high demand (and so has the most jobs), has to bear the cross of having the worst programmers around it.

15

u/strattonbrazil Feb 22 '15

For real-world production servers, it tends to require a fair amount of JVM tuning.

I've seen stories where massive services will have a bit of JVM tuning done to be more efficient. Good for them. Seriously, what's the alternative? Running a slower language like ruby? The usual workflow I see is write something in ruby (or some other scripting language) just to get it up, switch to java for performance as many companies have done (Twitter, Google, Foursquare, etc.), and then do performance tuning because why use X machines when you could do the same work on half of them?

1

u/[deleted] Feb 22 '15

My rails apps run on the JVM now. Still tuning but much faster. Kind of a pain to roll the servers, but all in all, thanks java!

1

u/segv Feb 22 '15

Out of curiosity, why do you think it's painful?

From my experience all you really have to do is copy over JDK (as in, copy the files, don't even have to 'install' it), copy over the application, update JAVA_HOME and PATH and hit start.sh for the application (if you have special needs the workflow needs to be changed, of course).

Since you can put your application with all of its dependencies in a single package, the ease of (repeatable, predictable) deployment is miles and miles ahead of some systems associated with other languages (looking at you, virtualenv) - no manual updates on each of the boxes, no binary incompatibility with a binary blob you have to dlopen and so on.

2

u/[deleted] Feb 22 '15

Oh no, I'm talking about how long it takes torque box to roll over when I'm doing a code push. Annoying. And the jit takes a while to kick in after that.