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

Show parent comments

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)