I usually use this convention:
CompanyName.ApplicationName.Functionality
eg.
Acme.EmailService
Acme.EmailService.Dal
Acme.EmailService.BusinessLogic
Acme.EmailService.BusinessLogic.ErrorHandling
but where I work now, they use:
CompanyName.Functionality.ApplicationName
Acme.EmailService
Acme.Dal.EmailService
Acme.BusinessLogic.EmailService
Acme.BusinessLogic.EmailService.ErrorHandling
The last namespace looks a little strange to me. This is a subfolder of the business project, so by default the folder name is added to the namespace.
I have seen many standards for naming conventions, but no one mentions this issue.
What are the advantages and disadvantages of each approach?
source
share