I need a better way to name everything in Python. Yes, Ive read PEP8 , Spolskis wonderful outfit , and various other articles. But Im looking for more recommendations when choosing the actual words.
And yes I know
Stupid reconciliation is the Hobgoblin of Little Minds.
But you can maintain compatibility with PEP8, etc. and still don't have consistent variable / method / class names that are easy to remember. As agreed, I mean that if you were offered the same solution twice, you would give the same name.
As an example, there are several methods compatible with PEP8 to indicate the following elements:
- the number of columns in the table
- current column number
- column object
- column amount
Yes, of course, it’s easy to decide to use something like num_coland count_colrather than col_numand col_count(or vv). But I would like to see an example that has seen some testing / refinement over time. I often start with this agreement, and then it begins to collapse when I venture into a new area.
I assume that what I am looking for is not only what the / root / tag / suffix prefix (which was partially discussed for Apps Hungarian in the Spolsky article) should do, but (many) examples for each or a rule for generating everyone.
nazca source
share