0

Sometime programmer name variable like this "mBtnLogin" and sometime "btnLogin" what s does mean ?.

18th Mar 2017, 8:05 PM
Mahmood Ali
Mahmood Ali - avatar
3 odpowiedzi
+ 3
its upto the programmer, they can be named anything. Its a good pracrice to name them as needed, example to name a variable sum to add stuff, rather than name it 'a'. btnLogin is a good name for Login Button
18th Mar 2017, 8:32 PM
Meharban Singh
Meharban Singh - avatar
+ 3
I think that the answer you are looking for is that, for better readability, the name of a variable starts with a small letter and all the words after the first one start with a capital letter
18th Mar 2017, 8:33 PM
Dextozz
Dextozz - avatar
+ 1
when open api classes usually gloab variable name start with "m" so i expected there is some pattern that programmer work on ..
19th Mar 2017, 9:31 AM
Mahmood Ali
Mahmood Ali - avatar