re: Pimp your Rails Application VIEW POST


Nice work.

I definitely agree with the overall opinions here. And I do see a lot of similarities with use-cases and form objects, and maybe a more conventional way of behaviours could be having simple concerns for the form objects (UseCases). 🤔

I like the distinction of when to use Services versus UseCases, this has often been a decision that isn't always made consistently on projects/codebases.


HI Unathi! Thanks for your response :)

Yes, you're right there is a big similarity between UseCases and FormObjects. Rails Form Objects are one of the inspiration sources for this gem. I encourage everyone to use what he/she/it likes the most. The both provide the same purpose. And yes, you don't need a gem for everything. You can do most of the stuff with rails builtin tools.

However I really like the term "UseCase" and defining the workflow via steps is really elegant in my opinion. That's why wanted to have a gem with some kind of "micro framework" and I'm looking forward to extend the gem with some additional tools and feature (without harming the simplicity of the gem).

Code of Conduct Report abuse