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

Show parent comments

5

u/aradil Feb 22 '15

And the lack of a not brain-dead datetime/calendar library.

Wooo Java 8. I'll probably never be able to upgrade to Java 8. Also, I'm pretty sure it's anonymous functions are internally just converted to classes anyway, and are really just sugar. But I like sugar.

2

u/bluestorm96 Feb 22 '15

Anonymous functions in Java 8 are not implemented as inner classes. You'll note that compiling a class with lambdas doesn't spit out multiple class files, as opposed to ones with inner classes. The compiler spits out different bytecode, and the JVM also each differently at runtime. There's a good read about it here.

1

u/aradil Feb 22 '15

That's very awesome. I could have sworn I read something saying the opposite, but that may have been a very long time ago back when they were still deciding what features to put into Java 8.

1

u/gingenhagen Feb 22 '15

You don't like joda?

1

u/aradil Feb 22 '15

We don't use joda. And the builtins are infuriating.

I think I'm going to jam it in on Monday and see if anyone notices. We have a ton of garbage date and time code that should have been using joda forever ago, but we haven't had time to rewrite it all. So for some reason that meant we just never started using it.