Click here to Skip to main content
15,900,461 members

Survey Free Text Answers

Coding style: How do you name your local variables?

3 Apr 2006 to 9 Apr 2006 What's your convention de jour for your locals?

Text entry answers for sorted by frequency of occurrance.

(7) i, j, k...
(6) CListCtrl
(2) _local
(1) _localString
(1) _PascalCaseWithUnderscore
(1) _strLocal
(1) after my roommates, so everyone will find himself in my code
(1) airline reservation
(1) ajax
(1) all lowercase
(1) all of the above
(1) application blocks
(1) aString
(1) because camelCase isBeautiful
(1) begins with underline
(1) Blend it all together
(1) but no scope prefix added for locals
(1) c++
(1) capture desktop
(1) case of the api
(1) clear form
(1) Combo of scope, Hungarian, and camel case
(1) creator
(1) CVV Expiration
(1) depends on the language and coding standards
(1) depends on the language I'm using
(1) EachWordCased and x, y, z, x2, y2, z2....
(1) Eddy, Johnny, Robert...
(1) EID:F:1411073877-1041:1041:10004:1059
(1) electronic library system
(1) empire earth
(1) Encryption
(1) file transferring in java from one pc to another
(1) fixed leter prefix and _ if is local (eg _lsize, for private long)
(1) gdi++ download
(1) handle
(1) Hungarian modified -- str for Class level private and s for procedure local
(1) I don't seem to be consistent
(1) i name all my variables 'gavin'. nothing compiles.
(1) if there is integer local variable a then in vb code it is
(1) iki
(1) Image Manipulation in
(1) in java code
(1) K&R
(1) l_local or l_localResult or l_shouldDoThisOrThat
(1) lblUserName
(1) library system project
(1) like pearl my_szLocal
(1) loc_
(1) local
(1) lower_case_local_variable - _member_variable
(1) lower_case_with_underscores
(1) lowercased_with_underscores
(1) ls_Local
(1) matlab
(1) matrix
(1) md5 hack
(1) mdac 2.7
(1) mix between Pascal and camel cased
(1) modified Hungarian
(1) my own
(1) my own way
(1) myMember_, myLocal
(1) Name them for real locals - Bubba, Spike, One-eye, Lizard, etc.
(1) Networking
(1) Partially Hungarian
(1) Pascal & Camel Cased depending on Scope
(1) prefix_word_word_word
(1) progress 4gj programming and code
(1) Random Alpha-Numerics
(1) select a good (!) name, like "this_is_my_variable" or "background" etc. A prefix make NOT sense!
(1) socat vb
(1) some_var
(1) sql lan base
(1) Statistic Application
(1) Stop the prefix insanity! They generally make the code harder to read.
(1) The Proper Way
(1) unable windows form
(1) Underscore and Pascal Case (eg _Local)
(1) Underscore then camel case (eg _lastName)
(1) usb
(1) using socket
(1) variable_name
(1) vc++
(1) visit
(1) what are local variables?
(1) _ camel Cased
(1) _ prefix