One step my company has added is?
MyCompany.Applications
where .Apps is an application
and the lack of an "Applications" means a framework piece.
As in.
MyCompany.Exceptions
MyCompany.IO
MyCompany.Messaging
...
MyCompany.Applications.NorthwindManager
Thus we have a way to seperate framework from applications.
I would (personally) avoid the Common word.
Company.Collections.Generic.SerializableDictionary
instead of
Company.Common.Collections.Generic.SerializableDic tionary
I think trying to relay the intention of Common is hard sometimes, and
inevitably somebody is going to put something in there you don't want.
(unless you have an approval process).
I try to look at the System namespaces and try to mimick them if I can.
System.Exceptions
becomes
MyCompany.Exceptions namespace.
"Ludwig" <ludwig.stuyck(remove)@telenet.bewrote in message
news:f2********************************@4ax.com...
Hi,
we're planning to create a framework of reusable components. Now, we
are having a discussion on how to set up the namespace hierarchy.
We have components like a mult-select TreeView, a VATChecker, a
serializable Dictionary and so on.
One approach could be:
Company.Windows.Forms (containing treeview)
Company.Common.Validators (containing VATChecker class)
Company.Common.Collections.Generic.SerializableDic tionary
Company.Web (web related stuff)
Company.NetCF (mobile stuff)
Someone told me to add business into the namespace hierarchy, like:
Company.Finance (containing VATChecker class).
So I'm looking for some guidance here: what is the best approach and
why?
Thanks!
--
Ludwig
http://www.coders-lab.be