Different components of a system must have clear and descriptive names. Some names might be context dependent, or domain-specific, but it should be fairly evident what it is for - variables hold data, and so should be nouns that describe said data; functions/methods are verbs because they are active.
Two important points I need to follow more closely:
- It is okay to use long names. Indeed, it is preferred to use a long name,
ordered_result_filtered, over a short variable, such asa. - Use singular names as much as possible, rather than defaulting to plurals (even when describing a set of data that is plural!). For example, do not use
items, rather, declare the variable asitem_list.