|
|
|
|
|
by jweir
1228 days ago
|
|
We use a similar pattern and have a strict namespace. Player would be a namespace. It would be a module with no or limited code. Within it would be Controller, Model or the agent noun modules that take call: Creator, Inporter, Mailer - the “er” words indicate there will be a single call function. We broke from the standard Rails directory structure. All the code for Player would be in one directory - including views. |
|
Feature-slicing (directory per feature) vs Component-slicing (models, views, controllers each have their own directory regardless of which feature they contribute to).