Last week, I was doing what I do best: scheming with a fellow Java developer on how to design our objects for the upcoming project. The twist is that we have a big opportunity for re-use and we had to take advantage of it to avoid painful re-implementation.
After settling on a design, I asked my partner about which layer these objects would live in: the “logic” layer, claiming to house business logic, or the “entity” layer, which apparently contains getter and setter classes.
On the project that has been the topic of recent Nowhere To Run strips, we used the entity layer because we had no complicated business logic. I was rather surprised when he said that these objects we were about to implement would best reside in the logic layer.