Stu on Nostr: Question for #python folks - is it best to name variables the way they're commonly ...
Question for #python folks - is it best to name variables the way they're commonly referred to in documentation, tutorials, and so on?
For example, the connection object in pyodbc is typically named `cnxn`, but that's just lousy for the casual reader. I'd like to just call it connection.
Published at
2024-06-10 18:14:03Event JSON
{
"id": "775496f2ea8ba95d31ec9515907d6225925b3e4d82bc8ef618daaa0ca22a5975",
"pubkey": "f5433c6addf0d77ed91ce6167f08ec9a0ff3f23b1da7abcba980bb0a4bb42d1f",
"created_at": 1718043243,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://hachyderm.io/users/tehstu/statuses/112593681979211485",
"activitypub"
]
],
"content": "Question for #python folks - is it best to name variables the way they're commonly referred to in documentation, tutorials, and so on? \n\nFor example, the connection object in pyodbc is typically named `cnxn`, but that's just lousy for the casual reader. I'd like to just call it connection.",
"sig": "171f6c218edc0cd2118947687b0e8e9066b4efbec4aff195f62a1cca284cb932766b13007ddc4c24ed66d11d2733af9db1ac29f85a047576c1cfc5ceb96997b6"
}