Getter, Setter, Never?
In shortThe rigmarole of starting a new project can be tedious. You have to create a bunch of basic classes and fill in all their getters and setters. Luckily your IDE can automate this for you. But should you even generate these methods? Take a look at when getters and setters are an anti pattern. Learn how to improve your classes and readability of your code.
Want to see more articles like this in your inbox? You know what to do.
Zvonimir is a passionate software developer coming from Croatia but with current base in Berlin, Germany. Don't ask him anything in German yet though, he's still working on his sprachen-skills.