473,320 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MSFT took all the good namespaces

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
Jul 21 '05 #1
2 1243
In news: ee**************@tk2msftngp13.phx.gbl,
Raymond Lewallen <Ra******************@nospam.faa.gov> wrote:
........
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.


Hi Raymond,

My thought is to use a prefix of some sort. Since you're with the FAA I'd
use something like

MyAssembly.faaGlobal.faaData - data retrieval classes

The point that these are global data classes still comes across to
developers. I'm sure others will have different ideas.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
ci**************@mvps.org www.cindywinegarden.com

Jul 21 '05 #2

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:ee**************@tk2msftngp13.phx.gbl...
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.


I would simply tell FxCop to stuff it and use what you want(well, I may look
to avoid global or a few other words that might be considered *common* terms
in other langauges). Some small changes could be made: Process =>
Data.Processing, Data=>Data.Access if you really wanted to, but for the most
part it really isn't an issue.
Just don't use the namespace System *anywhere* and you should be ok. System,
Microsoft, or any other common toplevel namespace can crush you in C#, but
little else should. I would make your decision based entirely on the
languages standardized in your company and remove the rules from fxcop that
you dislike. If you are using C# and intend to move to C# 2.0 in the near
future, you should also probably examine extern aliases and the new
namespace operator and make concessions for them.
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Marcin Vorbrodt | last post by:
Here is an example of my code: //Header file #include <vector> using std::vector; namespace Revelation { // class definitions, etc... // class members are of type std::vector }
17
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
59
by: seberino | last post by:
I've heard 2 people complain that word 'global' is confusing. Perhaps 'modulescope' or 'module' would be better? Am I the first peope to have thought of this and suggested it? Is this a...
22
by: Alvin Bruney | last post by:
These guys answering posts with MSFT attached to their name, I make the assumption that they are employees of microsoft. My question: Is this a free time activity? Or are they getting paid by MS to...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
2
by: Raymond Lewallen | last post by:
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.