News for hackers. Stuff that matters.
Re:Ask HN: Why do startups avoid Java? by bin_bash on Thursday November 10, 2022 @09:16AM (#33546724)
Among many reasons I think one is that it has a poor amount of open libraries/frameworks when you stack it up against other languages. The culture is much more DIY so there isn't a lot to help you get started with a new application.

I've never been a Java dev, but as I understand the package manager story is/was really bad. I've always wondered if that's part of the reason why you see so few open source efforts compared to other languages.

Re:Ask HN: Why do startups avoid Java? by KingOfCoders on Thursday November 10, 2022 @09:19AM (#33546783)
When I was a Java dev I never had a problem with package management (except everyone bundling Log4J with different version dependencies).

When I've used Scala, package management was hell. When I've used Node, there were a million warnings about the dependencies of my dependencies whenever I installed something. Upgrading often broke things contrary to Java. Plus many dependencies went dead over night. When I've used JS libraries in TS, many integrations/adaptors where half baked and underdocumented.

I'd say the best dependency management I've used is from Rust, but Java was no problem, even with Maven.

The ecosystem might have changed since I've left, but there were many well maintained libraries and frameworks for Java, Apache, Spring and many more. What Java lacked were some higher level frameworks back than, E.g. ready to use payment frameworks (you had to use lower level frameworks like E.g. what Stripe supplied as a library).

Re:Ask HN: Why do startups avoid Java? by fn1 on Thursday November 10, 2022 @09:18AM (#33546760)
This is dead-wrong.

Java has excellent package management and there is a giant ecosystem and excellent libraries for almost everything you can think of.

Re:Ask HN: Why do startups avoid Java? by rockwotj on Thursday November 10, 2022 @10:03AM (#33547465)
Agreed one of the reasons my company picked the JVM ecosystem is the pethora of excellent libraries for almost anything
Re:Ask HN: Why do startups avoid Java? by rlawson on Thursday November 10, 2022 @09:22AM (#33546826)
I have to disagree here. For all it's faults there is a very robust ecosystem of libraries to choose from.
Re:Ask HN: Why do startups avoid Java? by kaba0 on Thursday November 10, 2022 @10:15AM (#33547657)
Java is one of the top 3 languages. It likely has as much open-source libs as, say, all the other languages combined down from the top 6.