R
Raymond Lewallen
It could help if you understood the project I work on a bit, but I can't
tell you anything about it, so do the best you can under that pretense.
Lets say you have a global assembly supporting multiple applications. In
that assembly, you have mass amounts of classes classified as such:
functions that get data, instantiated functions that process large amounts
of data, shared functions that process small bits of information, like some
string conversions at such, and you also have a number of other specialized
classes. To me it makes sense that you would have:
MyAssembly.Global.Data - data retrieval classes
MyAssembly.Global.Process - data processing classes
MyAssembly.Global.Methods - classes with shared functions/subs
MyAssembly.Business.Support - friend classes to support Global namespaces
MyAssembly.UI.Base - base classes to support UI
etc, etc. Now, FxCop pukes at this naming convention, understandably
(doesn't like Global, Data, Process and some others not mentioned here).
Since MSFT has used up the good and obvious namespaces and you don't really
want to duplicate those in other assemblies to avoid confusion, what is one
to do to come up with a solid and logical naming convention for namespaces?
Do you just go ahead and use obvious namespaces, or is there some other
rules out there that everyone is implementing in these circumstances?
Just looking for thoughts on how to group and names these namespaces.
Raymond Lewallen
Federal Aviation Administration
tell you anything about it, so do the best you can under that pretense.
Lets say you have a global assembly supporting multiple applications. In
that assembly, you have mass amounts of classes classified as such:
functions that get data, instantiated functions that process large amounts
of data, shared functions that process small bits of information, like some
string conversions at such, and you also have a number of other specialized
classes. To me it makes sense that you would have:
MyAssembly.Global.Data - data retrieval classes
MyAssembly.Global.Process - data processing classes
MyAssembly.Global.Methods - classes with shared functions/subs
MyAssembly.Business.Support - friend classes to support Global namespaces
MyAssembly.UI.Base - base classes to support UI
etc, etc. Now, FxCop pukes at this naming convention, understandably
(doesn't like Global, Data, Process and some others not mentioned here).
Since MSFT has used up the good and obvious namespaces and you don't really
want to duplicate those in other assemblies to avoid confusion, what is one
to do to come up with a solid and logical naming convention for namespaces?
Do you just go ahead and use obvious namespaces, or is there some other
rules out there that everyone is implementing in these circumstances?
Just looking for thoughts on how to group and names these namespaces.
Raymond Lewallen
Federal Aviation Administration