News for hackers. Stuff that matters.
Re:Java 1.0 Turns 25 by nsxwolf on Saturday January 23, 2021 @12:47PM (#25884440)
A bean with nothing but fields and a couple annotations is much cleaner and smaller than one full of generated getter/setter code. And I can rename a field without having to fumble around with the IDE to regenerate them.
Re:Java 1.0 Turns 25 by pjmlp on Saturday January 23, 2021 @01:11PM (#25884667)
Never learned to use code navigation tools and respective IDE filters?
Re:Java 1.0 Turns 25 by nsxwolf on Saturday January 23, 2021 @01:18PM (#25884736)
Those aren’t as good as just using Lombok.
Re:Java 1.0 Turns 25 by pjmlp on Saturday January 23, 2021 @01:30PM (#25884846)
Indeed, they don't provide the pleasure to dig out bugs caused by mishandling bytecodes or the verifier.
Re:Java 1.0 Turns 25 by petersellers on Sunday January 24, 2021 @12:47AM (#25889650)
Are you referring to code folding? Stuff like that helps but it's still not as good as Lombok just generating the getters and setters for you. I'm not sure if IntelliJ can filter out some of the other stuff Lombok can generate (builders, value objects, constructors, etc.)
Re:Java 1.0 Turns 25 by pjmlp on Sunday January 24, 2021 @02:06AM (#25889987)
Lombok generates too much for its own good.