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?

8

u/smithywill Feb 22 '15

I like Scala. It does away with a lot of the boiler plate code from Java. Although it does have a steep learning curve, the functional side of it teaches Java devs to be better programmers, it has for me anyway.

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.

6

u/superPwnzorMegaMan Feb 22 '15

It has quite the learning curve though. I thought I'd just start with it and see where it takes me similar to my groovy experience, but it took me quite a whilst longer to create functionality.

I really like the type inference and the immutability, so I'll stick with it for bigger projects in favor of java.

What I did not like is that scala is currently impossible to mix with groovy, it can be mixed with java, but not groovy (at least not in the IDE). You can however let your scala classes handle interpreted groovy scripts, which is pretty cool. So I don't think it should be that hard to fix this problem, I might take a look at it when I have time.

→ More replies (7)

12

u/[deleted] Feb 22 '15

Scala is a horrible language. It's far too flexible. The creators see c++ and thought it didn't give you enough ways to write confusing code so they added even more options. Everything in scala has like 5 ways you can call it and everyone does it a different way making using third party libraries a pain if you ever have to debug.

7

u/[deleted] Feb 22 '15

Scala is a horrible language. It's far too flexible.

Then what we should use? A language with zero-flexibility, like Go? Flexibility is very-very important to write verbose dsls for frameworks. It prevents to make disastrously ugly & non-verbose fws like spring and hibernate.

Everything in scala has like 5 ways you can call it and everyone does it a different way making using third party libraries a pain if you ever have to debug.

I don't know what kind of experience you have with Scala but debugging Scala is easy beacuse of typesafety.

→ More replies (10)

0

u/[deleted] Feb 22 '15

[deleted]

3

u/[deleted] Feb 22 '15

It doesn't seem to be a language with a plan, just a "whatever the hell we feel like adding at the moment" kind of thing.

That is called evolution and it is unstoppable. Java and c# already introducing some of the features of Scala.

Scala actually drove me to Clojure...and I didn't know a Lisp so that's pretty bad.

Is it better?

→ More replies (1)