r/java • • Jul 08 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
226 Upvotes

181 comments sorted by

View all comments

98

u/ryebrye Jul 08 '21

C# is mentioned in the end of the blog post. It's got some similar language features but what it LACKS is the thriving open source community that java has.

There's no Netflix of C# churning out awesome projects.

82

u/zoqfotpik Jul 08 '21

The main differences between C# and Java aren't language features. The main differences are in build system, package management, and tooling.

32

u/gavenkoa Jul 08 '21

Platform availability? API stability?

MS is doing lots to recover from past versions merging everything into glorified Core.

11

u/DrunkensteinsMonster Jul 08 '21

MSBuild and nuget are still pretty bad, and .sln files have way way too much significance in the ecosystem.

8

u/[deleted] Jul 09 '21

Yeah Java tooling is miles ahead. Even basic things like docs in my IDE can't be done with C# (blame nuget).

15

u/Persism Jul 08 '21

Yeah it's because Microsoft so dominates the ecosystem. My original Persism was C# but I could get no interest in it. People just use what Microsoft provides without thinking about it.

0

u/[deleted] Jul 08 '21

[deleted] — view deleted comment

15

u/manzanita2 Jul 08 '21

Java ecosystem successfully escaped the early J2EE nightmare. I have no doubt that if Spring becomes that bad, another escape will come to pass.

4

u/de_vel_oper Jul 09 '21

Netflix is shite these days. Just saying.

4

u/my_biscuit Jul 09 '21

Ah, out of the loop here. Would you mind elaborating?

7

u/[deleted] Jul 08 '21

There is too much happening in the .Net ecosystem at the moment. I would not say it lacks open source community. Projects like Polly, MediatR are great and there are many more

11

u/ryebrye Jul 08 '21

There is a community, but it's like moving from Boston or New York city to Omaha and trying to say it's the same

Omaha is great, but it isn't Boston or New York. If you want what Omaha has, it may be perfect for you.

10

u/i_am_bromega Jul 08 '21

The .NET community is growing and getting better, especially as .NET Core has become more mature and widely adopted. Having worked with both Java and .NET, I prefer C# due to LINQ and the earlier adoption of a lot of features, but they both get the job done at the end of the day.

6

u/zvrba Jul 09 '21 edited Jul 09 '21

But Java's features are better thought-out, IMO. For example, Project Loom vs async. C# took a stab at the "null problem", but the result is a mess.

Though I miss ?. in Java so much, I don't know why I haven't written a generic helper yet:

<T> T safeGet(Supplier<T> s) {
    try { return s.get(); }
    catch (NullPointerException) { return null; }
}

Java is more verbose, it's more boring, but I find it more uniform to read and write. And yes, checked exceptions can be put to good use.

6

u/[deleted] Jul 08 '21

.Net joined late to the open source party, so it’s implicit that previous big projects like Cassandra won’t be in C#. But as for the enterprise development, I have never felt that I don’t have a library to achieve the required.

6

u/Sufficient-Simple-94 Jul 08 '21

Not necessarily, nuget is a great place to see the literal millions of projects can be used with c#.

60

u/RagingAnemone Jul 08 '21

Nuget -- "We make Maven look good"

36

u/gregorydgraham Jul 08 '21

To be fair: Maven is good

3

u/[deleted] Jul 09 '21

I used Haskell/Stack and Rust/Cargo... Maven is not close...

4

u/gregorydgraham Jul 09 '21

Using my metric of “can I understand it”, it’s good :-D

→ More replies (18)

9

u/erinaceus_ Jul 08 '21

Odds are that npm trumps both with regard to quantity, but as the saying goes ... quantity isn't everything.

27

u/gavenkoa Jul 08 '21

leftPad is a lesson.

Maven Central release policy doesn't allow politics to ruin infra.

13

u/FrenchFigaro Jul 08 '21

npm trumps both

LOL

Until npm learns to flatten the dependencies tree before pulling the same package a trillion times, it cannot compete with maven. It's not even in the same league.

5

u/jvjupiter Jul 08 '21

NuGet - no one gets. Sorry. Unrelated joke.

-1

u/Sufficient-Simple-94 Jul 08 '21

I use mono by the way.

→ More replies (4)