views:

16

answers:

1

Hello, help me please with naming vars and functions!

And more specifically about standartizing names and functions (I'm not talking about classes because sometimes it really depends on FrameWork etc.).

For example: list, map, counter/count (or cnt), quantity (or qnty) etc.

I'm asking because sometime it is really difficult for me to find best name (English ins't my native janguage, Russian is. :)).

Thank you.

A: 

I think this question is a little too general. What programming language are you referring to. The "standards" are different for different languages. For example in general C++ functions are named something like manipulateArrayData(char* pArray, int nLength) and in C# it would be something like ManipulateArrayData(char[] array) (no length parameter needed in C#)

pstrjds
Please note that I'm not talking about coding style, I'm talking about keywords in variable names. I'm not interested, how you writing it, I want to know what words I'm using for naming.
Kirzilla
Sorry, my misunderstanding. I would go with the naming convention of picking something that is meaningful. If it is a list, name it list like you mentioned in your post. I would not abbreviate unless you have some sort of character limit or it is a very clear abbreviation. Especially if you are unsure. A little wordier is okay in my book if it is clear.
pstrjds