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

140

u/karlhungus Feb 22 '15

I have no love for java.

While it performs pretty well nowadays, it still isn’t competitive with C or C++ and, with a little love, Haskell and OCaml can or will eclipse it in that domain.

I didn't think this was true, i thought it was somewhat close to C (excluding startup).

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

This is really seems like reaching for something to be a problem that isn't.

because it objectively sucks.

If people can't even define OO, it can't objectively suck. If you were making a pun i forgive you.

culture is one of mediocrity and bad taste, with MetaModelVibratorVisitorFactory

These kinds of strawmen make me feel like "I don't have to read another word this person writes."

5

u/[deleted] Feb 22 '15

What about Scala?

13

u/[deleted] Feb 22 '15

I'm glad you mentioned! It is a really powerful language! I think everybody should try Scala and its community to feel the higher-level easy development and break the slave chains of big companies.

1

u/btchombre Feb 22 '15

I like a lot of things about Scala, especially the imperative-functional balance that it has, but some things are just idiotic in my mind. Variable name, Colon, Variable Type is stupid and forces me to type an extra colon all over the place, which is contrary to their usual design pattern of "remove unnecessary bloat" like semi-colons. Also, casting from one type to another is painful using the .AsInstanceOf[Type] method, as this also breaks the "lets not be verbose!" mantra. Also, refusing to have operator overloading is another pain in the ass. Also, compiler errors are completely cryptic and not very descriptive at times. Once I switched to IntelliJ I realized that a large portion of my frustration with the language was due to Eclipse, but I feel like a few simple changes would make the language 100x better.

13

u/expatcoder Feb 22 '15

.asInstanceOf[Foo] is intentionally verbose. Why? Because it's a code smell, you're throwing type safety out the window. Pattern match instead.

refusing to have operator overloading is another pain in the ass

what on earth are you talking about? In Scala you can operator overload as you please: def >>(q: Query) = ..., def <*>[T](l: List[T]) = ..., etc.

Spend some time with the language, your complaints will turn to, "oh, now I see" instead of, "arggghhh, why isn't it like Java?"

p.s. Scala tooling and compile times suck compared to Java, no shortage of frustration there when starting out.

→ More replies (2)