I have a Padrino project, that consists of multiple apps. For example:
- Website (Models: Site, Page)
- Blog (Models: Post, Comment)
- Shop (Models: Category, Product, Order)
- Tracking (Models: Visitor, Content)
Putting all models unmodified into one directory seems to me like a mess. So I thought of namespacing them like:
- Website (Models: Site, SitePage)
- Blog (Models: BlogPost, BlogComment)
- Shop (Models: ShopCategory, ShopProduct, ShopOrder)
- Tracking (Models: TrackingVisitor, TrackingContent)
But this looks very strange and produces a lot of extra typing.
What do you think? Is it good style to ignore namespacing and hope not to run into a naming conflict (e.g. "Category" model for Blog app => Error) or should I prepend the apps name to each model?
Thanks in advance.
Cheers Marc