Long variable names
Posted
by RaouL
on Stack Overflow
See other posts from Stack Overflow
or by RaouL
Published on 2010-06-05T19:15:24Z
Indexed on
2010/06/05
19:22 UTC
Read the original article
Hit count: 158
Lets say i have a variable that contains the number of search engine names in a file, what would you name it?
- number_of_seach_engine_names
- search_engine_name_count
- num_search_engines
- engines
- engine_names
- other name?
The first name describes what the variable contains precisely, but isn't it too long?, any advice for choosing variable names? especially how to shorten a name that is too long or what kind of abbreviations to use?
© Stack Overflow or respective owner