Y
Hacker News
new
|
ask
|
show
|
jobs
by
alenmilk
2007 days ago
To be more specific, get rid of setters unless it is a data object. Have all fields be final and set them in one constructor. This makes the code more readable since you know no method will change the internal state.