News for hackers. Stuff that matters.
Re:Avoid getters and setters whenever possible by phkahler on Thursday March 22, 2018 @08:19AM (#16647934)
Instead of attributes that lead to creation of getters/setters, how about the simple notion of private or public access to members? I'm not sure which should be the default, but it sounds like Java programmers would like them private unless otherwise specified. Why add code when all you want is to restrict access?

There are no comments on this comment yet.