3 ms·
The whole getter/setter argument is trite. Project Lombok has been around for years and resolves that issue as well as many more.
by latchkey 9y ago
The whole getter/setter argument is trite. Project Lombok has been around for years and resolves that issue as well as many more.
- lmm 9y agoYou end up needing more-or-less your whole ecosystem to understand Lombok - your IDE, debugger, profilers, linters, code coverage tools... it ends up being just as much effort as switching languages.
- edem 9y agoYep, my thoughts exactly. I tried lombok when I was coding in Java and ended up dumping it beause it had more issues than it tried to solve.
- edem 9y agoLombok has a lot of issues. First and foremost it won't compile for people who don't bother installing it for their IDE. This greatly hampers OSS collaboration because it raises barriers of entry. I know there is delombok but the whole stuff comes with a lot of drawbacks. Reorganize my project just to delombok my project...whoa...
- latchkey 9y agoIt is nearly impossible to code any amount of Java without a proper IDE (Eclipse/IDEA). Or at least it isn't a sane decision to do so. Lombok is well supported in both of those IDE, especially for the use case of @Data/@Getter/@Setter. Installing it is just as easy as adding any other dependency (especially in IDEA with it's plugin ecosystem). It really is too bad this isn't just installed as default in the IDE though. Heck, I'd even suggest it be part of the language itself. But for now, we just shrug, install it and get back to coding. =)
- Chris2048 9y agoTrue, but it's not trivial to adopt.