Re: Naming Convention

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.