News for hackers. Stuff that matters.
Re:Are software engineering “best practices” just developer ... by avgcorrection on Thursday September 30, 2021 @03:03PM (#28709967)
> Getters and Setters? You probably don't need them. Classes can have public member variables.

We do need them if the objects interact with a lot the libraries that we use. Libraries that we didn’t make. They expect get/set.

I agree that getters/setters are very overrated. I tend to make public-final fields when I can. Most of the time I can’t though.

There are no comments on this comment yet.