r/ruby • • Oct 12 '24

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

https://medium.com/@beard-programmer/service-objects-as-functions-a-functional-approach-to-build-business-flows-in-ruby-on-rails-bf34bf18331d

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

22 comments sorted by

View all comments

Show parent comment

4

u/kahns Oct 12 '24

Wow, thank you very much! Amazing input.
I was writing this when worked at RunHR where we did payroll software and I was influenced by the codebase and domain we had, including namings and such.
It is just so silly Joel that you nailed those issues - I'm pretty sure they go back to our core project haha which was written by non-native speakers and no one saw them.

Thanks again buddy, thank you for your support and kind words.

I have another question for you - do you think it's better for the next part (say about error handling) to use the same domain as an example or switch to something more convenient?

4

u/joelparkerhenderson Oct 12 '24

You're welcome. Naming things is hard. :-) For your question about switching domains, yes, in my opinion you should switch, because you can make it easier for more programmers to understand your concepts. Keep blogging-- I've read some of your other work and your topics and articles are very good.

2

u/kahns Oct 12 '24

You are too kind Joel and it gives a lot of motivation, thank you! You are a minority here haha.

I’m gonna try to think of examples in ECOM domain, that’s my last place of work.