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?

11

u/bcash Feb 22 '15

Engineers at Twitter have forked OpenJDK and run a modified JVM with an extra generation in the memory model. It's a clever optimisation alright, but it still would have worked without it. When you get to Twitter-scale shaving 5% of run-time equals quite a lot of saved cash.

But exactly as you say, what's the alternative? Re-write everything in C and do all memory management manually? That would almost certainly work too, but at the moment they have good performance and a high-level language (mostly Scala rather than Java, but still valid as it was JVM tuning we were talking about).