DEV Community

Discussion on: Effective Service Objects in Ruby

Collapse
 
matteojoliveau profile image
Matteo Joliveau

Didn't know it, at first glance it seems like a more featureful command library than simple_command.
Interesting, but we're not talking about the same kind of service objects here. LightService and simple_command give you a single operation (or command, or action) implemented in each class, while a service object in my context (and the canonical design pattern) is more of a swiss army knife aggregating all the needed functionalities related to a domain element.