6 ms·
I might be a bit biased (I wrote and maintain a similar gem), but I think this is a great pattern that solves a real problem that is encountered and does so in
by jtms 2y ago
I might be a bit biased (I wrote and maintain a similar gem), but I think this is a great pattern that solves a real problem that is encountered and does so in a very Ruby kinda way. I particularly like the mental model of stringing together multiple service objects into a "pipeline" and the semantics chosen for the API. Kudos to OP for putting this out there!
- ismaelct 2y agoThanks. Where can I find your library? I'd love to compare notes!
- nathanappere 2y agoI use a functional version of this that can chain any "callables" + support extensions on the calling interface https://docs.rubykit.org/kit-organizer/edge/Kit.Organizer.Services.Organize.html https://docs.rubykit.org/kit-organizer/edge/Kit.Organizer.Se...
- ismaelct 2y agoNice. Yes the pattern I describe in the article supports any callable too. I should point out that this is not a specific library, just a very bare-bones pattern.