By bloid
via pab-data.blogspot.com
Published: Nov 28 2008 / 16:10
Anyone who as read my blog knows that I am an OO advocate, but I was watching Joe Armstrong the other day of Erlang fame and he posed the question: "In which Object should you place a given function? To me the choice seems arbitrary". Now if you've got a solid grounding in OO design principles then the answer to this one is easy. Keep the function near the data. So the object with most of the data is where the function should be. I have posed this very same question at interviews and most of the time supposed experienced OO Java developers are clueless.



Comments
Dave Newton replied ago:
Seems a little tautological.
Voters For This Link (14)
Voters Against This Link (3)