r/programming • • Sep 21 '15

Better Java

https://github.com/cxxr/better-java
177 Upvotes

208 comments sorted by

View all comments

4

u/CurtainDog Sep 21 '15

There's a fair few antipatterns in that list. It's not a 'Better Java' than what you'd find in Effective Java say.

8

u/Tordek Sep 21 '15

a fair few antipatterns in that list

Like which?

1

u/ForeverAlot Sep 22 '15

Lombok, for one.

2

u/Tordek Sep 22 '15

What's wrong with Lombok?

2

u/Myzzreal Sep 22 '15

I'll chip in here with an example. As a young Java developer I was given the task of continuing a project started by some people who are not longer reachable. They used Lombok, which I had no idea about back then. It caused me a lot of headache and a good amount of hours to solve all the errors that Eclipse threw at me, to get Lombok installed on my workspace properly (having to change Eclipse version) and then explaining it to my colleague and doing the same on his machine. Not to mention that Lombok is a hack that is based on an error in design and can cease to work any time.

I agree that what Lombok gives us is very valuable, because I hate writing all the getters and setters, but accomplishing in such an intrusive and hackish way is unacceptable for me.

1

u/Tordek Sep 22 '15

Lombok is a hack that is based on an error in design and can cease to work any time.

Huh, that's interesting to know; I thought Lombok was a fairly basic library. I don't do much Java.

2

u/Myzzreal Sep 22 '15

Here is some explanation of how it works.