News for hackers. Stuff that matters.
Re:Java’s Cultural Problem by throw_m239339 on Monday September 19, 2022 @06:57AM (#32896678)
Java needs to be more flexible and expressive, that's all, type inference, traits,collections,function expressions ... some things already made their way into the language after years of inflexibility as a philosophy.

If the language improves, then frameworks and API can be made less verbose.

A lot of "design patterns" in Java were created simply because of the language lacking expressiveness and are thus obsolete now.

Re:Java’s Cultural Problem by kaba0 on Monday September 19, 2022 @07:19AM (#32896843)
Most design patterns come way back from C++’s OOP hype area, actually.

Java just made those insane architectures possible due to not segfaulting at every turn, hence it also got associated with them. And indeed, many are “deprecated” by all the “new” features, including generics which is not exactly new.

Re:Java’s Cultural Problem by grumpyprole on Monday September 19, 2022 @07:05AM (#32896732)
It's not about just being more expressive. See the Brian Goetz quote. A more "functional style of programming", this means less mutation, more pure functions, e.g. Java's proposed records are immutable.
Re:Java’s Cultural Problem by samus on Monday September 19, 2022 @08:37AM (#32897511)
Minor nitpick: Records have been delivered in Java 16. Java 19 will also include the first preview for Record Patterns.
Re:Java’s Cultural Problem by PaulHoule on Monday September 19, 2022 @09:31AM (#32898053)
In general Java has picked up many features of the ML family of languages such as pattern matching, sealed classes, etc. It is so much fun to write compilers in Java using this stuff.

I code a lot of Python also, and I've been pleased to see pattern matching adding to Python by a process that seemed very similar to that in Java, that is, in both cases the feature was developed gradually with a lot of care to make sure it works well with the rest of the language.