News for hackers. Stuff that matters.
Re:AI to name your Java Classes by jeroenhd on Sunday March 05, 2023 @10:12AM (#35030240)
Write Kotlin instead so you can have a method named `this method will calculate the sum of two integers`!

I don't think Java has a naming problem per se, I think the focus on inheritance and other OOM principles just make it very easy to overengineer your solutions.

Things like getters and setters (and the fact Lombok still isn't just part of the language itself) annoy me much more. At least records fix some pain points.

Re:AI to name your Java Classes by tapotatonumber9 on Sunday March 05, 2023 @12:21PM (#35031651)
Exactly ! In my experience OOM certainly seems to be a Java key principle.

(Currently replacing a Java application with one written in Go).

Re:AI to name your Java Classes by NERD_ALERT on Sunday March 05, 2023 @12:22PM (#35031665)
I’ve personally enjoyed using Immutables even more than Lombok. It produces generated java classes instead of a JAR when you build so it’s easy to view.

https://immutables.github.io/