News for hackers. Stuff that matters.
Re:Java 18 / JDK 18: General Availability by jmyeet on Tuesday March 22, 2022 @11:17AM (#30767107)
Because Java is stable and mature, has well-understood performance, is statically-typed, has a proven track record when it comes to backwards compatibility, is reasonably fast and has lots of library and tooling support. Additionally lots of people know it.

Some complain about verbosity. It's really a non-issue particularly in a modern IDE and not worth making a language decision over.

Not everything has to be new and sexy.

Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @11:27AM (#30767242)
Definitely an issue in 8. My hack is to call everything an `int`, write the statement, and go back and let IntelliJ handle the proper name, adding the import, etc.

I understand though, that in more recent versions of Java this is taken care of for you.

Re:Java 18 / JDK 18: General Availability by matsemann on Tuesday March 22, 2022 @11:51AM (#30767579)
Why not just write the statement and write `.var`? Like if you write

myService.getSomething().var

and press tab, it will autocomplete it to

Something something = myService.getSomething()

Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @04:33PM (#30771140)
wow. you just blew my mind. thank you.