Martin Fowler has an article on how minimising getters helps you think OO. Good points, and I try to minimise getters to when i need them. But the invent of generate getters/setters in the mainstream IDEs has led a lot of people to just generate it all. I’ve seen fair bit of code that could need a cleanup of the getters. 🙂
Categories