Suggested Microsoft way

M

Mario Novado

Lately I came to know that Microsoft is suggesting to go with underscore for
naming convention for variables (Am I right?).

Ex: Dim strMyName as String ---> Dim str_MyName as String

Any one has any comments. Am I talking some thing does not makes sense. If
you have any URL which tells the Microsoft suggested way on coding standard
please share with me.

Thank you very much.

Mario
 
J

jasonkester

Haven't heard that. Last I heard, MS was recommending against that
sort of overaggressive hungarian notation in favor of camelCasing and
reliance on Intellisense to remind you of types. They've also dropped
the m_'s for members in favor of a simple underscore:

Dim myName as String

Dim _myPrivateMemberVariable as Int


Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
 
W

WJ

Mario Novado said:
Lately I came to know that Microsoft is suggesting to go with underscore
for
naming convention for variables (Am I right?).

For readability, an "applicant_last_name" is easier to recognize than an
"ApplicantLastName".

It is also easier for disabled persons to read (Section 508 compliance). I
could be wrong on this part (s-508).

John
 
F

Flip

I found these interesting links.

Naming conventions from MSDN
http://msdn.microsoft.com/library/d...en-us/cpgenref/html/cpconnamingguidelines.asp

Designing .NET class libraries: Naming Conventions (they talk about banning
the use of Hungarian notation)
http://msdn.microsoft.com/netframework/programming/classlibraries/namingconventions/

MSDN link about capitalization
http://msdn.microsoft.com/library/d...s/cpgenref/html/cpconcapitalizationstyles.asp

This one has a chat with Brad Abrams (sp).
http://msdn.microsoft.com/chats/transcripts/net/design_naming_conven_012605.aspx

From what I've read, they are trying to de-emphasize the hungarian notation
for publicly exposed members in favour of Pascal naming (upper case and no
underscores).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top