|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Naming convention of VariablesA while ago, I found a web page that describe an array of naming
conventions when diming a variabe. For instance: tbl for table, str for string, i for integer.. (eg: tblMyTable, strMyString, iMyint, etc) I know there isn't a hard or fast rule of how your variable names should be formed, but my real question is does anyone have any links to web pages (M or other) that suggest types of naming conventions (prefixes) for different types variables?? Thanks, Robert <rob***@joshie.com.au> schrieb:
> I know there isn't a hard or fast rule of how your variable names Naming guidelines and code conventions> should be formed, but my real question is does anyone have any links to > web pages (M or other) that suggest types of naming conventions > (prefixes) for different types variables?? <URL:http://dotnet.mvps.org/dotnet/faqs/?id=namingconventions&lang=en> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> <rob***@joshie.com.au> wrote in message
news:1158152327.210483.236950@i42g2000cwa.googlegroups.com... imho this is less neccessary or useful nowdays with good intellisense and >A while ago, I found a web page that describe an array of naming > conventions when diming a variabe. > > For instance: > tbl for table, str for string, i for integer.. (eg: tblMyTable, > strMyString, iMyint, etc) > > I know there isn't a hard or fast rule of how your variable names > should be formed, but my real question is does anyone have any links to > web pages (M or other) that suggest types of naming conventions > (prefixes) for different types variables?? tooltips in the development environment. However I still prefix class members with "m_" and global singletons with "g_", or shared variables with "s_". Overall it doesn't matter too much as long as you are consistent, at least as far as maintenance is concerned. <rob***@joshie.com.au> wrote in message
news:1158152327.210483.236950@i42g2000cwa.googlegroups.com... I've always found the suggestions here to be favorable:>A while ago, I found a web page that describe an array of naming > conventions when diming a variabe. > > For instance: > tbl for table, str for string, i for integer.. (eg: tblMyTable, > strMyString, iMyint, etc) > > I know there isn't a hard or fast rule of how your variable names > should be formed, but my real question is does anyone have any links to > web pages (M or other) that suggest types of naming conventions > (prefixes) for different types variables?? http://www.xoc.net/standards/ <rob***@joshie.com.au> ha scritto nel messaggio
news:1158152327.210483.236950@i42g2000cwa.googlegroups.com... The page is this:>A while ago, I found a web page that describe an array of naming > conventions when diming a variabe. > > For instance: > tbl for table, str for string, i for integer.. (eg: tblMyTable, > strMyString, iMyint, etc) > > I know there isn't a hard or fast rule of how your variable names > should be formed, but my real question is does anyone have any links to > web pages (M or other) that suggest types of naming conventions > (prefixes) for different types variables?? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamingguidelines.asp And as it says you should avoid the prefix and choose a good descriptive name (i.e. "person" is good for a Person class, not for a string with the person name in it, for this use personName). The intellisense will do the rest.
gradient titlebar in vbdotnet
Print the RichTextBox Help Clearing data in MaskEditBox Control dumb question Parsing XML Updating Files How to return value in Combobox IIF referencing both conditional parts regardless of condition? Compiled HTML helpfile does not work when application is installed Adding parameters to stored procedures |
|||||||||||||||||||||||