Hacker News new | ask | show | jobs
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.

1 comments

Sounds like you reinvented Django but in Ruby.

Feature-slicing (directory per feature) vs Component-slicing (models, views, controllers each have their own directory regardless of which feature they contribute to).