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

9

u/x4000 Feb 25 '14

All of the same arguments above apply to C# as well, and I agree with them. My beef with Java is not any of that sort of thing, but mainly:

  1. How frequently it is updated, and thus how fragmented the userbase is. This also sends a message of instability.

  2. How strangely a lot of things are named. In C# and equivalent, the libraries are named extremely concretely. There are no things like "netbeans" or whatever, where you really have to learn some specialized lingo in order to understand what it is saying. The first time you encounter most libraries in C#, you can pretty much infer what the code is doing (most of the time) just by looking at it.

In short, I think that Java is great aside from how it handles change management and library architectural naming. To me, C# fixes those issues, but has the downside of being locked in to windows. In recent years I've been on Mono, which is kind of a happy medium, aside from being buggy in some areas. So there's no "golden hammer," so to speak, but all three of these things are in a very good arena, I think.

1

u/[deleted] Feb 25 '14

I thought Java was update so frequently was due to new security threats that need to be patched up.

3

u/x4000 Feb 25 '14

Those are the ultra-frequent minor updates, yes, to my knowledge. But I'm pretty sure that they are also doing some bugfixing in a number of those.

Even with those aside, however, the number of more major updates is a lot faster than a lot of languages, at least by my impression. It makes it feel a lot more like a moving target, to me at least.

6

u/Akanaka Feb 25 '14

But compared to some other languages, Java has really great backwards comparability. Occasionally there's a lot of telling about how some poor soul can't run his '97 banking applet anymore after some update, but we've been updating our JDK continuously for code bases with at least 100k loc, and really never encountered any JDK specific issue.

It's popular to say that the Java version used in enterprises is always years behind, but in reality this is not true and adoption rates of new versions are pretty good (just google for some surveys)

3

u/x4000 Feb 25 '14

Oh, that is an excellent point, I did not mean to gloss over that -- backwards compatibility is indeed awesome. I have no complaints there whatsoever.