My name is Matteo and I'm a cloud solution architect and tech enthusiast. In my spare time, I work on open source software as much as I can. I simply enjoy writing software that is actually useful.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I use to write my own service objects until I discovered the LightService gem. It provides a lot more functionality than the roll-your-own version.
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.