about naming

  • Thread starter Thread starter h-h
  • Start date Start date
H

h-h

when i make variable of button what kind of variable name do you use?

btnPress OR PressButton

nowaday ,especially .net , many of programmer use second one .

how about you?
 
Personally, I would use neither. It would probably be pressBtn. I don't make
variables that start with an uppercase, only properties.
 
Not 'normal'? lol
Sorry to be abnormal, that is just how I name things. I dont' like writing
out control names, because when you start using controls with longer names
like TextBox, TabControl, etc, it becomes a pain.
 
yes, i mean btnPress is normal but pressBtn is abnormal isn't it?

and using TextBox ,TabControl is longer than tbx , tctrl
but it's more readable.
TextBox can be able to use tbx or txt ...
RadioButtonList is rbl ot rbtnList ..it's more difficult to read.
that's why i'd like to choose pressButton
 

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

Back
Top