namespace-organisation

Guidelines for formatting XML Namespace

I have not developed web services applications that publicly faced the Internet. As I begin to consider the issues of exposing schema definitions to a wide audience, I believe a certain amount of consideration should be spent on properly formatting the schema namespaces. Has anybody come across a guideline document that advises how to g...

MVC Namespace organisation

Hoping the SO community can help to resolve a debate in the office. At the moment our conclusion is 'it depends' ! In MVC, how do you organise your namespaces? Option A Do you go down the MS ASP.NET MVC route of having a Models, Controllers and Views namespace? Option B Or do you separate each MVC triad into it's logical 'functio...

in which namespace / package to put exceptions

Hi What is the common or best practice to structure the location of your exception classes? Let's say you have the packages/namespaces myproject.person (models and DAOs for persons) and myproject.order (models and DAOs for orders) and the exceptions PersonException and OrderException. Should I put the exceptions in their corresponding ...

is it a good idea to have classes with the same name in different namespace in c#?

for example, we have two classes for parsing the resumes, one to parse Excel and the other to parse HTML.what my colleagues love to do is to name these two classes the same name and put them into different namespace,like shown as below: namespace XX.ResumeParsers.Excel class ResumeParser{} namespace XX.ResumeParsers.Html class ResumePa...