News for hackers. Stuff that matters.
Re:Everything about Java 8 by mercurial on Wednesday March 27, 2013 @03:22PM (#5451451)
With dependency injection frameworks, you don't really need setters anyway. I add getters only as needed, unless it's a public API.
Re:Everything about Java 8 by edwinnathaniel on Thursday March 28, 2013 @01:07PM (#5456112)
2 things: 3rd-party API that only works on "beans" and thin object (not your Services or DAOs that use DI heavily).
Re:Everything about Java 8 by mercurial on Thursday March 28, 2013 @01:33PM (#5456324)
You can't do much with 3rd-party APIs. For thin objects, a best practice is to keep them immutable by having only getters, but then you generally end up with Builder boilerplate.