Service Objects as Functions: A functional approach to build business flows in Ruby on Rails

I wrote this article last year and want to see what you guys think? I have not received much feedback when sharing on LinkedIn.
Original idea was to have a 3-4 post series, but I am not sure is it worth it and if its something people are interested to read about.
16
Upvotes
View all comments
Show parent comment
2
u/kahns Oct 12 '24
Hey Art, thanks for sharing your concerns!
1
Ruby is just so flexible that it allows to do different things. Year prior to OP I made another article about OOP vs FP, it’s much much shorter if you can take a look https://blog.devgenius.io/moving-away-from-oop-towards-fp-in-ror-c453cdaaf456 TLDR; state can be a problem
2
module_function leaves us without private methods (functions), but if we want them we could use extend self
Regarding #3 - that’s very interesting! Can you share how was DI made and what was the main issue from your perspective?