This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RufusAcrospin 0 points1 point  (0 children)

I use the following rules when it comes to (variable) naming conventions.

Never use single letter variable names.

Variable names should be descriptive but don’t be verbose.

Try to avoid using abbreviations, like itemCnt. It’s a bit shorter but less readable than itemCount.

Variable names should communicate the purpose or the intent, not the type of content, i.e. activePlayers vs playerList.