DEV Community

Discussion on: Effective Service Objects in Ruby

Collapse
 
maestromac profile image
Mac Siri

Nice post! Since UpdateTodo is very much related to TodoService, you could keep it under the TodoService namespace, like TodoService::UpdateTodo.

Collapse
 
matteojoliveau profile image
Matteo Joliveau

This is a really valid point, thanks for the idea!
It also helps to keep files more organized in the directory structure