2 Responses to '(Inglês) And speaking about repositories…'
Subscribe to comments with RSS
or TrackBack to '(Inglês) And speaking about repositories…'.
Yes, I agree with you, but still, although I don’t name my entities ProductEntity, I name my repositories ProductRepository, just for the sake of keeping things clear. When you look at Product, everyone gets it’s about an entity, while if all classes related to products had the same name, it would be impossible to distinguish them.
I don’t think adding sufixes would matter much about the uniquitous language.
I’m not telling you should call the repository by Product, just like the entity one.
My advice is to give meaningful names to any piece of the domain, regardless of a technical pattern.
So depending on your domain model you could have something like Products, or maybe CatalogProducts.
Yes, I agree with you, but still, although I don’t name my entities ProductEntity, I name my repositories ProductRepository, just for the sake of keeping things clear. When you look at Product, everyone gets it’s about an entity, while if all classes related to products had the same name, it would be impossible to distinguish them.
I don’t think adding sufixes would matter much about the uniquitous language.
Fabio
11 Mar 10 at 19:37
Fabio,
Thanks for bringing your viewpoint.
I’m not telling you should call the repository by Product, just like the entity one.
My advice is to give meaningful names to any piece of the domain, regardless of a technical pattern.
So depending on your domain model you could have something like Products, or maybe CatalogProducts.
rafanoronha
11 Mar 10 at 21:41