Java Pain
11–20 of 151 posts
Re: Java Pain
#12"Dear Java: I can run Ruby and Python and Go and JavaScript and C code from the command line on my Mac." - to be fair most of those languages are scripting languages.
Re: Java Pain
#13rhodey@rhodey$ mvn package
rhodey@rhodey$ java -jar .jar
Re: Java Pain
#14There 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).
I have always had the feeling that JVM is very stable, but I don't have much Java experience. Is that a wrong assumption?
Re: Java Pain
#15It's nothing wrong with Java the language, but the platform just seems to make common UNIX best practices hard.
Edit: Just remembered Kafka is Scala, not Java, but I think it just supports my asssertion that the Java/JVM ecosystem just makes common best practices hard.
Re: Java Pain
#16"Dear Java: I can run Ruby and Python and Go and JavaScript and C code from the command line on my Mac." - to be fair most of those languages are scripting languages.
Re: Java Pain
#17Re: Java Pain
#18How is the classpath problem different from manually specifying the -L and -I compiling that little c program exactly?
$CLASSPATH is purely runtime, so it's all the fun of dynamic linking, all the time. Monolithic shaded JARs can solve this problem but introduce some of their own.
Re: Java Pain
#19 First of all, it took me forever to figure out the java
command-line incantations to tell it that it needed my
project’s class files and the json.org library (which I’d
already downloaded so I could compile the sucker). Yeah,
I used to know that stuff ten years ago, but there really
shouldn’t be any complexity here.
"incantations"? It's not wizardry.Re: Java Pain
#20Good luck trying to compile a C project without autotools/make either.