Live data from Hacker News

Java Pain

tbray.org

91–100 of 151 posts

Re: Java Pain

#92
post #66

I'm seeing a lot of comments here along the lines of "this is just a problem Java newbies would have and this Tim Bray guy, whoever he is, doesn't want to take the time to learn the tools." Well. True, to a degree, I suppose, but whoever this Tim Bray guy is adds some pretty important context. He co-authored the XML spec and was director of web technologies at Sun. You know, the people who made Java and promoted it a…

Agreed - and both Sun and Oracle have no cultural tradition of taking toolchain usability seriously. Installing updates is a complete trainwreck for almost every product they've ever released and that's one of the most basic tasks for a software vendor. Fundamentally, I think the problem is arrogance – companies like Oracle or Sun historically assumed that their products are so important that it's someone's full-time…

  Installing updates is a complete trainwreck for almost
  every product they've ever released and that's one of the
  most basic tasks for a software vendor."
Then you haven't used Solaris 11, because in general, installing updates for the OS (and Java and many other things) is as simple as: pkg update

Also, your generalisations about 'no cultural tradition of taking toolchain usability seriously' are simply not true, I can show you plenty of tools where clearly whoever was working on them did care about usability.

With that said, I'm sure you're just venting and didn't mean what you said "literally"...

Re: Java Pain

#93
post #9

There are many Java pains, both little and big. Most of them are more related to the JVM than the language. It's why I still don't use Clojure significantly (or even ClojureScript), even though I really like the language. Things just break or simply never work and it appears random. Other environments I use get a lot less wrong (although node is pretty bad too).

What's wrong with node? npm is a very polished package manager, and I'm frankly surprised how infrequently libraries with native bindings fail to build.

For as great as npm is it also has plenty of issues. `npm clear cache` is so common that I don't know why it even bothers with a cache.

Re: Java Pain

#94
I'm confused about the HTTPS complaint. Is he trying to do something special? I'm pretty sure a simple HttpURLConnection object can read HTTPS links same as HTTP links.

I feel like I'm missing something.

Re: Java Pain

#95
Seems like 2 issues:

1. Launching Java Programs can suck

2. Java defaults to secure on https requests.

First, on #2, yeah, really cant do anything here. If they didnt do this way, it would be reported as another vulnerability in the JVM that they would have to patch.

On #1, this is actually an old problem that I had worked on this years ago and i even published the solution in javanet (remember that?). If there is any interest in this, i can revive the project since its been dead for nearly 10 years. (http://web.archive.org/web/20070724060104/https://launcher.d...)

Basically I had a custom classloader read the lib dir that worked similarly to tomcat's classloader. Dump any jars/wars/etc in there that you want. All you had to do was tell me where the main class was (because a lot of jars have testing Main built into it and i wouldnt know which one you wanted to run).

Re: Java Pain

#96
post #66

Earlier quoted context omitted.

Agreed - and both Sun and Oracle have no cultural tradition of taking toolchain usability seriously. Installing updates is a complete trainwreck for almost every product they've ever released and that's one of the most basic tasks for a software vendor. Fundamentally, I think the problem is arrogance – companies like Oracle or Sun historically assumed that their products are so important that it's someone's full-time…

Installing updates is a complete trainwreck for almost every product they've ever released and that's one of the most basic tasks for a software vendor." Then you haven't used Solaris 11, because in general, installing updates for the OS (and Java and many other things) is as simple as: pkg update Also, your generalisations about 'no cultural tradition of taking toolchain usability seriously' are simply not true, I c…

Are you saying that every JDK install should come with Solaris? Or that operating systems should be built specifically to suppport java installation?

Re: Java Pain

#97
post #56

Earlier quoted context omitted.

eh, you're quite right; it's the recursive I really need. oops. fta: Subdirectories are not searched recursively. our solution has typically been to unjar all the libs and turn everything into a single giant jar, though this often leads to 100+M jars.

Yeah I use uberjars sometimes too. Java deployment in general is awkward/subpar. Some of the newer tech like dropwizard has helped with this, but it's still far from ideal.

Take a look at capsule[1] (I'm the author).

[1]: https://github.com/puniverse/capsule

Re: Java Pain

#98

Given Suns history with EJB 2.0, I would humbly submit that "ease of use", work out-of-the box etc should not be the default expectations with Java. Having said that (snarky response) having worked with Java from 1.1, I think the language is moving in the right direction. The latest release (8) adds a ton of syntactic sugar and there is a real impetus towards easier more dev friendly features. Plus Java needs a non-b…

Amen for breaking backwards compatibility. Needs to happen soon so the CRUFT can be cut out of JEE.

I see the appeal but... Python's long, slow march to widespread adoption of 3.x, and Perl 6's much less successful experience, both suggest there would be a lot of danger in that.

Re: Java Pain

#100
post #66

Earlier quoted context omitted.

Agreed - and both Sun and Oracle have no cultural tradition of taking toolchain usability seriously. Installing updates is a complete trainwreck for almost every product they've ever released and that's one of the most basic tasks for a software vendor. Fundamentally, I think the problem is arrogance – companies like Oracle or Sun historically assumed that their products are so important that it's someone's full-time…

Installing updates is a complete trainwreck for almost every product they've ever released and that's one of the most basic tasks for a software vendor." Then you haven't used Solaris 11, because in general, installing updates for the OS (and Java and many other things) is as simple as: pkg update Also, your generalisations about 'no cultural tradition of taking toolchain usability seriously' are simply not true, I c…

We have a joke around here that if you get a job at Oracle out of college the first project they put you on is the Oracle Universal Installer. The thing has never worked. If you want to entertain yourself for a couple of weeks, try installing the latest version of the Oracle Database on the latest version of Oracle Linux. Oh, and try doing something "advanced" like using a non-default block size for the database. There is a little check box for that, but it doesn't work. You'll end up hand-editing a lot of Perl and Korn shell scripts and essentially running (and re-running) the whole install by hand. It's ridiculous. Once you get it running the software is amazing. Obviously they are capable of writing an installer. They just don't care.
Post reply on HN