Hacker News new | ask | show | jobs
by juliano_q 5101 days ago
I agree, I really like the "services" layer. I used it for years programming with Java/Spring and missed a lot when learning RoR. I think it is no coincidence that the two RoR real-world projects that I worked had enormous controllers. The service layer is great to orchestrate operations between models and I don“t know a reason for not using it.
2 comments

I believe this gem does something like that, https://github.com/karmajunkie/imperator
Does anything stop you from using a service layer with Rails?
No, but it doesn't seem to be a common practice. Actually on my personal projects the first thing I do is to create a service layer, but sadly the real world projects that I jumped into never had it.