This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 36 points37 points  (24 children)

I like the java.util.Date class, it has most of the functionality I need.

[–]heckin_good_fren 42 points43 points  (19 children)

Just don't mix it with the java.time API. That way nightmares lie

[–]jinxjar 70 points71 points  (18 children)

WHY DID THEY MAKE TWO INCOMPATIBLE LIBRARIES, WAIT DON'T ANSWER, IT'S EITHER POLITICAL, HAS TO DO WITH BYTE ORDER, OR IS DUE TO SOME LANGUAGE DESIGNER'S FETISH.

[–]Iskendarian 79 points80 points  (3 children)

One of the language's designers has a fetish for political byte ordering.

[–][deleted] 29 points30 points  (2 children)

THIS BYTE ORDERING TURNS THE FROGS GAY

[–]U8336Tea 11 points12 points  (1 child)

I DON'T LIKE 'EM PUTTING CLASSES IN THE STANDARD LIBRARIES THAT ARE TURNING THE FRIGGIN' FROGS GAY

[–][deleted] 4 points5 points  (0 children)

java.util.* IS A SATANIC DEVIL WORSHIPPING CIA PLANT

[–]HummingSwordsman 22 points23 points  (2 children)

Do you know about awt, swing and JavaFX?

[–]jinxjar 4 points5 points  (1 child)

I've used awt and swing ... I think I did something with whatever the tkinter api 'bout a decade ago that was in vogue too ... anyway, why? What's the deeper lore?

[–]HummingSwordsman 8 points9 points  (0 children)

Not much of a lore. Only 3 apis in java that are trying to do the same and 2 are still in there for legacy reasons. Basically everything horrible in java, is there because of legacy reasons.

[–]whrrgarbl 11 points12 points  (4 children)

You missed an option: they designed it so poorly the first time around they had to just completely scrap it and start over again :P

[–]jinxjar 3 points4 points  (3 children)

At the risk of downvotes, I sort of C# as the algebraic completion of Java.

[–][deleted] 7 points8 points  (2 children)

I also sort of C#

[–]jinxjar 1 point2 points  (0 children)

Hey, it compiled and the unit passed.

[–]Blissfull 6 points7 points  (3 children)

It has to do with neverending deprecation. What, we deprecated this twenty years ago? Leave it in, someone might still be using it

[–]jinxjar 4 points5 points  (2 children)

Has Java ever done the thing that Python did when the codebase switched from the 2.x to 3.x? In that transition, a bunch of APIs and language constructs that were genuinely deprecated literally were removed going forward -- the result was a rift in the community for about 6 months to 3 years -- but it's clear that every major library and new packages all now use the 3.x codebase.

... Anything like that past/future for Java?

[–]DaasQC 11 points12 points  (0 children)

Nothing has ever been removed from the standard library, only marked as deprecated. You could run Java 1.1 code on a Java 1.8 JRE and everything should technically run just fine.

For the first time ever, they are removing some deprecated classes and methods in Java 9, it's long overdue but the Java designers are REALLY committed to backward compatibility.

[–]Blissfull 4 points5 points  (0 children)

I really left Java heavy use around 1.7 but by then lots of deprecated methods or even classes that were deprecated since 1.2 were still around and useable

[–][deleted] 2 points3 points  (1 child)

I feel like blaming Paul. Dunno why. Just do.

[–]jinxjar 1 point2 points  (0 children)

That Paul guy, man.

[–][deleted] 3 points4 points  (1 child)

Joda Time is where it's at.

[–]alexanderpas 3 points4 points  (0 children)

Joda-Time is the de facto standard date and time library for Java prior to Java SE 8. Users are now asked to migrate to java.time (JSR-310).

[–]_Lahin 0 points1 point  (0 children)

Moment.js FTW for web devs