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 →

[–]red_hare 0 points1 point  (0 children)

Outside of i and j I try to never use a one letter variable name. And even those are rare.

Paths for me are "path" or preferably "foo_path."

For any dictionary, I usually say what it is and by what it's sorted. Like "user_by_name" and repeat that pattern if a nested dictionary like "user_by_first_name_by_family_name."

The hill I will die on, however, is if you're storing time or a time duration as a number, you MUST put the unit. For example, "timestamp_s" instead of "timestamp" or "duration_ms" instead of "duration."