Re:My 20 Year Career Is Technical Debt or Deprecated
by za3faran on Tuesday May 16, 2023 @06:59AM
(#35960073)
Java's records are immutable.
[ Parent
| on HN ]
Re:My 20 Year Career Is Technical Debt or Deprecated
by kelnos on Tuesday May 16, 2023 @07:06AM
(#35960123)
And most shops likely aren't using a JVM new enough to use records, and it will be a while before they are able to upgrade. And even then, most 3rd-party libraries out there won't use records, because they want to be compatible with the JVMs their users use. Hell, most popular libraries available on Maven Central are compiled with JDK8, or, at best, JDK11.
Aside from immutable instances, it would be nice if 'final' was the default, as well.
Re:My 20 Year Career Is Technical Debt or Deprecated
by marginalia_nu on Tuesday May 16, 2023 @08:30AM
(#35960928)
On the one hand sure.
But if we're going to critique Java honestly, can't we stick to the language the way it looks today and not the way it looked nearly ten years ago?
Modern Java is quite pleasant to work with. One by one the papercuts and footguns have been fixed.
Re:My 20 Year Career Is Technical Debt or Deprecated
by wanttocomment on Tuesday May 16, 2023 @08:35AM
(#35960984)
So it sounds like the fix is available with an update. What more do you want?