r/java • • Apr 20 '21

Java is criminally underhyped

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

295 comments sorted by

View all comments

125

u/dpash Apr 20 '21

Comments: 821.

Checks article date

15th April 2021. Oh boy.

81

u/lessthanoptimal Apr 20 '21

Really perplexing how some people seem to go full on tribal warfare at the mention of Java. At this point I think it's a coinvent meme that lets them unleash some pent up aggression.

29

u/dpash Apr 20 '21

Especially when it's based on an outdated opinion of the language.

PHP evokes the same reaction.

25

u/Cefalopodul Apr 20 '21

To be fair in PHP's case the reaction is somewhat warranted. It still has plenty of WTF moments.

18

u/dpash Apr 20 '21

Modern PHP is far from its older versions. It has decent DI and web frameworks, type hinting, exceptions, namespaces, a reasonable dependency manager. It's not the insane choice for new projects it was even ten years ago.

Now if only it gained generics I would be almost happy to use it.

0

u/helloiamsomeone Apr 20 '21

Generics have userland support. PHP Core has better things to spend developer time on than generics (which are already a thing implemented in userland).

4

u/dpash Apr 20 '21

If you mean phpdoc and Psalm, I fundamentally disagree. They need to be in the language.

-5

u/helloiamsomeone Apr 20 '21

You may do so, but static analysis and code quality tools are far more widespread than in Java.

From what I can see Java is lacking in this regard. There is no linter with autofix capabilities and CheckStyle is quite lackluster. In PHP you drop a 3 line XML in the root and you have checks for PSRs and autofixes for them. Much better experience.

You also have to consider that there aren't that many PHP Core devs and they really do have much better things to spend their time on than an already solved problem. Bolting generics onto the language is no easy feat.

4

u/[deleted] Apr 21 '21

Aside from the fact that /u/dpash has answered you, let me remind you that Java is a (moderately) strongly-typed static language. PHP is neither, and so, ipso facto, needs a lot more analysis tools not to mention testing.

0

u/helloiamsomeone Apr 21 '21

PHP has 2 static analysis tools, dpash listed 8 for Java. Neither of you addressed the complete reply besides the first half of the first sentence.

→ More replies (0)