Naming Conventions 
Author Message
 Naming Conventions

Since Microsoft suggests not using the hungarian notation anymore, does
anyone know of an arcticle defining a suggested naming convetion for vb.net?

Thanks,
Paul



Tue, 04 Jan 2005 06:08:19 GMT  
 Naming Conventions
Recommending naming conventions is like recommending
religions--sensible people don't go there. Just pick one you like, or
invent one, it doesn't really matter (just don't adopt the selfish
convention--using "My" as a prefix for everything <g>). The main point
of a naming convention is that it makes your life easier because your
code is more readable, at least as long as you're consistent in using
it, that is.

-- Mary
MCW Technologies
http://www.mcwtech.com

On Thu, 18 Jul 2002 17:08:19 -0500, "Paul McBride"

Quote:

>Since Microsoft suggests not using the hungarian notation anymore, does
>anyone know of an arcticle defining a suggested naming convetion for vb.net?

>Thanks,
>Paul



Tue, 04 Jan 2005 10:15:44 GMT  
 Naming Conventions
Paul,

See "Design Guidelines for Class Library Developers"

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpge...
ml/cpconnetframeworkdesignguidelines.asp

This is also in the VS.NET online help. The naming convention is similar to
Java. Main difference is methods and properties are Pascal case, i.e., start
with upper case.

You can adopt the same for VB.NET except you have to be slightly different
with properties because of case-sensitivity, e.g.,

Private _customer As Integer

Property Customer
...
End Property

For controls most developers (as far as I can tell) are still using
Hungarian prefixes, i.e.,

lblCustomer, txtCustomer, lvwCustomer, etc.

but I guess we should really be writing

customerLabel, customerTextBox and so on...

It should also be noted that Microsoft do not consistently follow their own
naming conventions!

Kevin


Quote:
> Since Microsoft suggests not using the hungarian notation anymore, does
> anyone know of an arcticle defining a suggested naming convetion for
vb.net?

> Thanks,
> Paul



Tue, 04 Jan 2005 16:50:34 GMT  
 Naming Conventions
Got to :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbco...
l/vbconobjectnamingconventions.asp


Quote:
> Since Microsoft suggests not using the hungarian notation anymore, does
> anyone know of an arcticle defining a suggested naming convetion for
vb.net?

> Thanks,
> Paul



Tue, 04 Jan 2005 20:37:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Indexes - Primary key naming conventions

2. Universal Naming Convention.....

3. Naming Conventions?

4. Naming Conventions?

5. Naming Conventions (pascal, camel, etc)

6. Naming Conventions -- Opinions please...

7. New Naming Convention

8. Naming conventions

9. Naming conventions

10. Standard Naming Conventions

11. Menu Naming Conventions

12. Naming Conventions: Avoiding Conflict

 

 
Powered by phpBB® Forum Software