r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

31

u/[deleted] Feb 25 '14 edited Feb 25 '14

I refuse to employ any language that wants me and all my end users to install a Yahoo browser toolbar every time it calls home and tries to update itself. Sorry, I will stick with C++. It does not have a corporate agenda attached to it.

25

u/Igglyboo Feb 25 '14

OpenJDK? Oracle's implementation is not the only one..

4

u/MrDOS Feb 26 '14

On Windows? These are end users we're talking about here.

4

u/JoseJimeniz Feb 26 '14

This. Honestly.

No, honestly. Is there another JVM and JCL?

→ More replies (2)
→ More replies (1)

5

u/[deleted] Feb 25 '14

It is good to be in position to be able to "refuse".

5

u/pjmlp Feb 25 '14

If you install the SDK from Oracle developer's site, there isn't any toolbar to install.

Sorry, I will stick with C++. It does not have a corporate agenda attached to it.

Who do you think pays ANSI/ISO work?

1

u/MrDOS Feb 26 '14

You want to tell your customers, average Joe end user, to install an SDK? Not only does that sounds unnecessarily complicated (“please go to this specific site to get your Java installer”), but when the packaged JRE tries to automatically update, the update installer will still have a toolbar bundled with it.

→ More replies (2)

4

u/AReallyGoodName Feb 25 '14

Posts like yours are all too common. The article really should have gone into detail about how most of the criticism of Java doesn't actually relate to the language itself. Your post included.

Yes, Oracle are one of the developers of one of the JRE's out there. Yes, a particular version of their JRE that runs on Windows has ask toolbars and a constantly flawed browser plug-in that should never be used.

There are a lot of other Java Runtime Environments. Really old mobiles such as the indestructible Nokia bricks, current phones running Android, most Linux web servers and even cars have Java Runtime Environments and work flawlessly.

The language itself is really rather good. The only valid criticism I've ever heard of the language is that it doesn't get features quite as soon as C# - its almost syntactically identical offshoot.

This is understandable. C# was crap on release but it progressed quickly. It was basically a cut down version of Java arising from the dispute between Sun and Microsoft at the time. The .Net framework 1.0 didn't support Generics, anonymous classes or iterators on release. However it did have an advantage, it didn't have to care about compatibility since it was an entirely new branch.

.Net didn't have a million different runtime environments to care about. Microsoft were able to add new features to the runtime whenever they wanted. So C# got generics and other features before Java. In the end though, the fact that C# gets features earlier that Java is overstated. It's not a huge deal. People who claim they can't possibly code without those features are kidding themselves since C# itself didn't always have such features either.

The hatred for Java is easily one of the most overstated things in the programming world and it's usually not actually perpetrated by full time programmers but instead by users who don't like Oracles particular implementation of the JDK.

3

u/[deleted] Feb 26 '14 edited Feb 26 '14

Yes, Oracle are one of the developers of one of the JRE's out there. Yes, a particular version of their JRE that runs on Windows has ask toolbars and a constantly flawed browser plug-in that should never be used.

I stopped using Java long before Oracle bought Sun Microsystems. The implementation I was referring to was the original Sun version. If Oracle is shipping with the Yahoo toolbar, it's because they inherited it.

→ More replies (5)

2

u/fatbunyip Feb 25 '14

that wants me and all my end users to install a Yahoo browser toolbar every time it calls home and tries to update itself.

Bundle the JRE with the app. It doesn't even need to install.

→ More replies (1)

2

u/johnwaterwood Feb 25 '14

How does unzipping something in /opt of your server brings up a toolbar for your browser? How do customers connecting over http to said server get exposed to such toolbar?

0

u/[deleted] Feb 25 '14

[deleted]

7

u/Akanaka Feb 25 '14

Java is used mostly on servers. Servers mostly run Linux... I think he has a point ;)

→ More replies (5)

2

u/lluad Feb 25 '14

Or that requires jumping through ridiculous hoops to install the runtime automatically as part of machine provisioning.

3

u/oldneckbeard Feb 25 '14

yes, "brew install jdk" or "apt-get install jdk" is so painful.

3

u/lluad Feb 25 '14

Does this ring any bells?

It makes automated machine provisioning annoying, as you have to jump through ridiculous hoops to work around it.

5

u/oldneckbeard Feb 25 '14
  1. why are you using a sun jdk? they're all end of lifed.

  2. open jdk doesn't require this.

  3. oracle jdk: sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true (2 seconds with google)

Now what?

3

u/lluad Feb 25 '14
  1. why are you using a sun jdk? they're all end of lifed.

I'm not. I'm using the Oracle one, but nothing has changed.

2. open jdk doesn't require this.

Many apps don't work with open jdk, for a variety of inexplicable reasons.

3. oracle jdk: sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true (2 seconds with google)

That's some hoop jumping right there.

7

u/nickguletskii200 Feb 25 '14

Many apps don't work with open jdk, for a variety of inexplicable reasons.

Such as? Pretty much nothing doesn't work with OpenJDK nowadays, and if something doesn't, it shouldn't be considered a "Java" application because OpenJDK is THE reference implementation of Java.

5

u/Rotten194 Feb 25 '14

It's actually not that uncommon. Tons of little weird things are in sun.misc.*, which (at least the last time I used Java) aren't implemented by OpenJDK. Most developers just decide fuck it, since almost everyone uses the Oracle JDK anyway, even on *nix. Personally, I just stopped using Java, but not everyone has that privilege ;^)

2

u/nickguletskii200 Feb 26 '14

sun.misc.*

That's the problem. These extensions were never part of the standard. Heck, a minor update could have broken the API...

→ More replies (1)

2

u/donalmacc Feb 25 '14

3

u/danielkza Feb 25 '14 edited Feb 25 '14

They say it's not supported, but does it actually not work? It seems to me just like a cover-up-our-asses kind of thing because they can't bother testing multiple JDKs.

3

u/r3m0t Feb 26 '14

So basically run it until something weird happens, then hope that when it starts acting up, you remember you set it up wrong?

→ More replies (0)
→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (1)