News for hackers. Stuff that matters.
Re:Java Is Underhyped by dunefox on Friday April 16, 2021 @09:25AM (#26833569)
Acting like Java tooling isn't more difficult than other languages is dishonest. Starting with a Java project is considerably more complex than with most other languages. "Missing manifest" or issues with classpaths are not intuitive.
Re:Java Is Underhyped by WatchDog on Friday April 16, 2021 @10:41AM (#26834468)
Building a standard maven or gradle project is substantially easier than most other languages, in my experience.

I don't have to setup a $GOPATH, downloading dependencies doesn't kick off a million scripts that end up running native compilers, like in the node/ruby/python/php ecosystem. I can build and run a Java project on almost any system, without making substantial changes to my environment and without giving up and using docker for my dev environment.

Re:Java Is Underhyped by Nursie on Friday April 16, 2021 @09:50AM (#26833845)
"gradle init --type java-application"

Honestly I haven't had to deal with the issues you talk about in the last five years (which is as long as I've been writing java commercially, before that I was mostly a C developer).

Having had recent experience with Go and Javascript/Node, I can't say either struck me as especially easier or more intuitive to get started with.

Re:Java Is Underhyped by dunefox on Friday April 16, 2021 @10:16AM (#26834161)
Most likely because you have dealt with them many times before that you don't notice them anymore or prevent them in the first place while setting up a project. But everytime I need to do something in Java I get bitten by this stuff, and I'm not the only one.
Re:Java Is Underhyped by Nursie on Friday April 16, 2021 @10:48AM (#26834556)
I've never had to, was my point. Not since waaay back in the day when I was first learning about it (more than 20 years ago). I came to java (commercially) 5 years ago, and it's not that I've dealt with it so much I don't see it, I've never had to deal with it.

Maybe things have got much better in the last handful of years, I don't know. My experience of getting started with a java project in that time has been no worse (and not really any better either) than in other languages.

Re:Java Is Underhyped by blandflakes on Friday April 16, 2021 @10:08AM (#26834070)
Ok I'm super sympathetic to how annoying it is to manage JDKs, but holy hell it's not like Python tooling (for example) is a walk in the park. Are you using system python? Is it pip, with it's constantly breaking upgrades, or poetry, which isn't necessarily production ready? Do you have a virtualenv? Pipenv? How do you package it?

Java tooling can be painful but to me it's VERY squarely middle of the road.

Re:Java Is Underhyped by dunefox on Friday April 16, 2021 @10:24AM (#26834254)
I agree, Python is horrible. And I don't even like the language itself much. I like Julia, for example - although packaging there isn't great either.

My problem is that Java is one of the (probably) 3 biggest languages in use, both investment and dev time wise, and it's overall just not that great.

Re:Java Is Underhyped by blandflakes on Friday April 16, 2021 @10:35AM (#26834383)
I honestly wish I knew what was better - it's not like I've ever used a build tool I didn't hate in some way. Part of the problem with Java to me is that (IMO) maven is the only build tool that doesn't make force me to spend significant time maintaining the build as well as the code, but maven is... very much a local maximum.

I generally agree with "not that great" - Java the language I actually find fine, and to me it scratches a lot of the pragmatism that Go tries to get, with different warts in each. I try to avoid the Java framework ecosystem so I don't have to deal with beans and annotations and piles of codegen, not because I don't like the language. And Android has done much damage to the community's impression of Java.