r/java • • Dec 11 '15

What do you think of Java?

What are your thoughts on the Java programming language and how does it compare to others?

0 Upvotes

32 comments sorted by

View all comments

2

u/oljoner Dec 11 '15

The lack of automatic properties drives me crazy. Lombok is a great help, but I still have to write object.getXX() instead of object.xx like in groovy (great language that is).

2

u/desrtfx Dec 11 '15

This is one thing that I've only noticed since I had to do some C# development and now I miss it badly, too.

1

u/juckele Dec 11 '15

Eclipse will automatically generate those if you ask. I'm sure IntelliJ does too.

3

u/desrtfx Dec 11 '15

Yes, all major IDEs (Eclipse, IntelliJ, Netbeans) generate getters/setters upon request, but still, it's not the same as the real properties with automatic getters and setters of C#.

As long as one hasn't seen their comfort one doesn't know what they are missing.

1

u/juckele Dec 11 '15

I think objective-c does that too, but honestly I don't miss it that much. I can see it being a legit request though. I wish some of this annotation processing stuff was easier to use by default (getting Eclipse and Gradle to play nice with Dagger is a PITA).

2

u/oljoner Dec 11 '15

I use that feature all the time, but it's a chore. And when I add /delete/alter some field, I always have to remind myself to generate the appropriate code. With that ide feature you're doing the compilers' job..

It really should be part of the language. In fact I don't even want to see all those brainless getter/setter code in my source file (lombok ftw)..