by raganwald · 15y ago · 0 comments
The sad thing is that way to much people think "getters and setters" when they hear "object orientation". Maybe even "Eclipse will do that for me". Needless to say that encapsulation isn't understood then, too. But encapsulation is bigger topic of it's own and would have been to much for that post.
While talking about that with other people I got the impression that just explaining the way it was meant to be does not work well. Especially if a professor and many books tell otherwise. Therefore I try to make people think for their own about the problem. Showing the problem, how it is solved and how it can be solved in other situations. I don't know if I succeeded in that.
Not OO (Object Oriented) is high praise in situations where the OO solution would be worse.
All heuristics should be ignored if it suits the situation to ignore them. OO is one of many a heuristics for software design.
Sometimes a deposit abstraction is simply a waste of conceptual budget and is best avoided.