News for hackers. Stuff that matters.
Re:Paving the on-ramp to Java by salil999 on Thursday September 29, 2022 @08:47AM (#33019811)
> Having static fields and state is to be avoided.

This is totally false. It will always depend on the use case.

Re:Paving the on-ramp to Java by mcculley on Thursday September 29, 2022 @09:16AM (#33020186)
State, while necessary, is the enemy of sanity. It should be kept to a minimum and be well marked as dangerous.

The change I would most like to see in a new Java syntax would be to make final and immutable the default. Force the programmer to make clear where state lives.