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

Naming conventions?

Does anyone have some good pointers to good naming conventions preferrably
by MS.

Another developer and I had a discussion on the naming of a public property
that contains a collection of variables.
He wants to call it "Parameter" like when you name tables in SQL, I want to
call it "Parameters" so you can see that it contains several values. What is
the correct naming in OO, and do you have a pointer to a document that
describes these naming conventions?

Kind Regards,
Allan Ebdrup
Nov 17 '05 #1
5 1358
Hi,

Check out:
http://msdn.microsoft.com/library/de...guidelines.asp

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"Allan Ebdrup" wrote:
Does anyone have some good pointers to good naming conventions preferrably
by MS.

Another developer and I had a discussion on the naming of a public property
that contains a collection of variables.
He wants to call it "Parameter" like when you name tables in SQL, I want to
call it "Parameters" so you can see that it contains several values. What is
the correct naming in OO, and do you have a pointer to a document that
describes these naming conventions?

Kind Regards,
Allan Ebdrup

Nov 17 '05 #2
"Rakesh Rajan" <rakeshrajan {at} mvps {dot} org> wrote in message
news:C8**********************************@microsof t.com...
Check out:
http://msdn.microsoft.com/library/de...guidelines.asp

Thanks Rakesh, however I can't find anything clearing up the problem I
describe in the above.

Kind Regards,
Allan Ebdrup
Nov 17 '05 #3
Hi Allan,

In OOP "Parameters" is more suitable than "Parameter" for a property of the
type ArrayList, Collection, etc. The best argument to convince your fellow
is to use the Object Browser and take a look at the Microsoft .NET Framework
libraries. You will notice that while classes are named like
"ListView.ColumnHeaderCollection", the property is named ListView.Columns.
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Allan Ebdrup" <co****@ofir.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP09.phx.gbl...
Does anyone have some good pointers to good naming conventions preferrably
by MS.

Another developer and I had a discussion on the naming of a public
property that contains a collection of variables.
He wants to call it "Parameter" like when you name tables in SQL, I want
to call it "Parameters" so you can see that it contains several values.
What is the correct naming in OO, and do you have a pointer to a document
that describes these naming conventions?

Kind Regards,
Allan Ebdrup

Nov 17 '05 #4
"Allan Ebdrup" <co****@ofir.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Does anyone have some good pointers to good naming conventions preferrably
by MS.

Another developer and I had a discussion on the naming of a public
property that contains a collection of variables.
He wants to call it "Parameter" like when you name tables in SQL, I want
to call it "Parameters" so you can see that it contains several values.
What is the correct naming in OO, and do you have a pointer to a document
that describes these naming conventions?

Kind Regards,
Allan Ebdrup


There is no question about it. You should use 'Parameters'.
Look at the overall naming convention in .NET framework. Examples:

Request.QueryString.Keys[0];
myDataset.Tables[0].Rows[0];

- Michael S


Nov 17 '05 #5
"Michael S" <a@b.c> wrote in message
news:uq*************@TK2MSFTNGP12.phx.gbl...
There is no question about it. You should use 'Parameters'.
Look at the overall naming convention in .NET framework. Examples:

Request.QueryString.Keys[0];
myDataset.Tables[0].Rows[0];


I will precent the evidence and hopefully convince him that "Parameters" is
the correct choice. Thanks for your feedback.
Nov 17 '05 #6

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

Similar topics

4
by: Cristof Falk | last post by:
I wanted to get a feel. The documentation gives naming conventions for public/protected members. Is this truly widely adopted? And what about using the same conventions for private members and...
7
by: cmiddlebrook | last post by:
Hi there, I keep finding myself getting inconsistent with naming conventions for things like member variables, class names etc and I just want to find something that suits me and stick to it. I...
1
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
3
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
5
by: rastaman | last post by:
Hi all, I know of the existence of Object Naming Conventions for Visual Basic 6. Now I'm reading some books about VB .NET, but the names used for the objects are button1, picturebox1, etc. I...
4
by: Patrick | last post by:
what are the general naming conventions for vb.net controls. esp txtUserName, lblPassword, btnSubmit What are the prefixes for the controls???? I've tried to search hi and low on the net, but...
9
by: kevininstructor | last post by:
Greetings, I am in the process of creating naming conventions for VB.NET controls i.e. CheckBox -> chkShowThisOnStartup ListBoxt -> lstSomeList What I am looking for other developers...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
1
by: Philipp Post | last post by:
Marcello, Not a big surprise as naming conventions have a lot to do with personal prefernces. There are a lot of threads in comp.databases and the other database groups. Just do a search for...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.