473,385 Members | 1,766 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,385 software developers and data experts.

Framework namespaces

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
Mar 15 '07 #1
4 1195
VJ
Sure adding business is good if your components are for that domain only. If
not what you have is perfect

VJ

"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

Mar 15 '07 #2


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

Mar 15 '07 #3
On Thu, 15 Mar 2007 13:47:39 -0400, "sloan" <sl***@ipass.netwrote:
>

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.SerializableDictionar y
instead of
Company.Common.Collections.Generic.SerializableDi ctionary

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.
Thank you for you remark. We do have an approval process, but I will
take your remark in consideration! Thank you!

--
Ludwig
http://www.coders-lab.be
Mar 15 '07 #4
On Thu, 15 Mar 2007 09:10:17 -0500, "VJ" <no***********@yahoo.com>
wrote:
>Sure adding business is good if your components are for that domain only. If
not what you have is perfect

VJ
Yes, we came to the same conclusion. Thanks!
--
Ludwig
http://www.coders-lab.be
Mar 15 '07 #5

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

Similar topics

3
by: Darren Gulliver | last post by:
I have 1.1 of the .Net Framework but in my .Net references all the namespaces i.e System.Data.Dll etc are showing a version of 1.0.3300.0 but in C:\WINNT\Microsoft.NET\Framework\v1.1.4322 I have a...
3
by: Rea Peleg | last post by:
Hello I'd like to use .NET framework namespaces in client side java script. For example i'd like to import System.Activator, in order to call Activator.CreateInstance() method inside a client side...
28
by: Peter Olcott | last post by:
I want to double check my understanding about how the .NET framework works. From what I understand every call to the .NET framework is ultimately translated into one of more API calls, is this...
6
by: Ronald S. Cook | last post by:
I have been asked to write a ..NET Windows app using the 1.1 framework. I have both 1.1 and 2.0 on my PC. When I create a new project in Visual Studio 2005, it shows initial namespaces under...
1
by: SP | last post by:
I have a web service application which uses 3rd party assemblies. I recently upgraded my solution to use .NET Framework 2.0 instead of .NET Framework 1.1. The 3rd party assemblies that I refer are...
5
by: Ronald S. Cook | last post by:
Does .NET 3.0 Framework contained any fixes to .NET 2.0 Framework, or if it is same old 2.0 Framework just with WCF, WPF, and WF on top of it? I have a colleague who thinks they updated the 2.0...
6
by: sam | last post by:
Hi, The .net framework contains a lot of classes and I am looking for a map of framework classes in jpg or pdf format to get a quick viesw of framework classes. Does anyone knows if this...
2
by: dhanashivam | last post by:
Hi All, I have some questions on Framework 3.0. Can anybody please clear these? My web application is developed by Framework 2.0 with C#.NET, VS2005 and SQLServer 2000. If i go for...
3
by: Andy B | last post by:
I have about 12 services that will be used on the website I am working on. A few of them are News, Events, Venues (that work directly with Events), Mailing lists and some others. Each one of these...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.