Hi,
imagine a situation where you have an application that needs to import data from different sources. For each of these sources exists a seperate model (often not related to the others).
So let's say i have my software component X which does all the importing, the namespace is correspondingly X. In X i have all my different parsers and importers, so maybe one for txt files, another for xls files etc.
Which style do you prefer:
X.XlsParser
X.XlsModelObject
X.TxtParser
X.TxtModelObject
vs.
X.Xls.Parser
X.Xls.ModelObject
X.Txt.Parser
X.Txt.ModelObject
or should i just put the model (2-4 entities) for the corresponding source into a sub namespace?
X.XlsParser
X.Xls.ModelObjectA
X.Xls.ModelObjectB
X.TxtParser
X.Txt.ModelObjectA
X.Txt.ModelObjectB
I don't want to clutter a single namespace with all those unrelated classes, however i also don't want to have issues like figuring out which parser my code is referencing (would have to look usings).
What do you think about
X.Xls.XlsParser
some kind of doubles the work.
What naming conventions do you adhere to?