In generally I'm using the standard naming stated in PEP-8 for variables. Like:
delete_projects connect_server However sometimes I can't find any good name and the name just extend to a long one:
project_name_to_be_deleted I could use pr_nm_del , but this makes the code unreadable. I'm really suffering finding good variable names for functions. Whenever I begin to write a new function I just spent time to find a good variable name.
Is there any standard for choosing certain abbreviations for well known variable names like, delete,project,configuration, etc. ? How do you choose short but good and readable variable names ?
This question might be not depend directly to Python, but as different programming languages uses different variable names formatting I thought I limit this question to Python only.
naming-conventions... as they say, the two hard problems in computer science are cache invalidation, naming things and off-by-one errors ;)name_variablebut I don't know what to choose for short variables or abbreviations. I mean is there any documentation or any standard for that ? I couldn't find anything related to this.