DEV Community

loading...

Discussion on: Things that happen in relationships are the things that matter.

Collapse
kspeakman profile image
Kasey Speakman Author

I believe that if it feels awkward, then probably there is a better way to model it. The key take-away here is that where there is confusion about which object in the relationship should host the "behavior", then probably the relationship should be its own object which hosts the behavior. Also that not all nouns are objects with behavior... sometimes they are just data.