r/Python • u/ResponseSeveral6678 • May 04 '26
Discussion How much meaning do you encode into names before they become too long?
I am super curious what naming rules do you use in Python?
Do you standardize things like:
- suffixes / prefixes (DTO, Service, Manager, etc.)
- naming length (short vs explicit)
- abstraction levels in names
Or does it change per project?
For me, naming is everything.
If I see the name - I should know precisely what it does without guesses.
I often rename the same thing 5–10 times until it “sits” and feels stable.
Sometimes the name becomes painfully long, but you know exactly what it does:
I just grepped the longest name in codebase
class AssertRepeatedRequestNonBytePayloadMatches: ...At what point do you stop adding meaning and accept ambiguity?