Re: Naming Convention
- From: "tdavisjr" <tdavisjr@xxxxxxxxx>
- Date: Mon, 25 Sep 2006 17:37:54 -0400
Well, this all started when MSFT released a document stating that Hungarian style programming is discouraged. I don't see why for so many years this was quite fine; but now all of the sudden with .NET it is discouraged. You can use variation of styles. They recommend stuff like:
lastNameTextBox
LastName
lastName
but to tell you the truth, this is all hogwash. If you find a style that your are comfortable with, stick with it. Or, if you company has a set standard use it. Otherwise, ignore what others are saying. Is is non-productive.
"sck10" <sck10@xxxxxxxxxxxxx> wrote in message news:OShK#VL4GHA.1568@xxxxxxxxxxxxxxxxxxxxxxx
Hello,.
Numerous people have kindly commented on my use of the Hungarian style naming convention, which I am appreciative of. In trying to move away from this naming style, I have run into some difficulty. For example, I have a application that has something like the following:
Text Box: txtLastName
Label: lblLastName
HiddenValue: hdnLastName
In terms of best practice, how should I name these three objects? Any help with this would be appreciated.
Thanks, sck10
- Follow-Ups:
- Re: Naming Convention
- From: Mark Rae
- Re: Naming Convention
- References:
- Naming Convention
- From: sck10
- Naming Convention
- Prev by Date: How do I connect to an Oracle database?
- Next by Date: Re: How do I connect to an Oracle database?
- Previous by thread: Re: Naming Convention
- Next by thread: Re: Naming Convention
- Index(es):