Apr 8, 2022
Nice article! I completely agree that people tend to make objects way too large such that the meaning and use of the object becomes muddy and hard to reason about.
Sometimes even if there is a bit it of duplication of logic across objects that is better than having a single object with lots of if / else conditions.
I like making separate service objects for each verb or action, leaving the entity objects such as Offerer and Bidder as pure state. This keeps dependencies for each object very minimalistic.