Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java is still great, same for PHP and they have only been getting better.


Great is pretty domain-specific!

Java has been great for larger projects for a while, but I think smaller things like one-off scripts have been firmly out of reach so far.

It's good to see that change, as being able to use it in the small has obvious synergies.


For CLI scripts, PicoCLI with Graalvm seems to be a good option now.


> but I think smaller things like one-off scripts have been firmly out of reach so far.

why specifically?


The article lists several good reasons:

Having to compile every time (or at least there not being a convenient wrapper that compiles and runs at once), the boilerplate of having to define a class and main method, exception handling, and most of all having to deal with Maven.


you don't need to deal with Maven if Java standard library(which is huge) is enough for you. Also, not sure why such big resistance against maven.

Other pointers are either opinionated or minor. From another hand, if dev has experience in Java, benefit of not learning some new language/ecosystem is kinda huge.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: