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": "42b0d3cb3b47e95c355547106d5f89a78eae70b8680a7803ef5753e87079f613",
"pubkey": "cb22acf4d4231e92492ed1301e17ee1712bed5317bad987c11f5a4ed203b2102",
"created_at": 1718043243,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://hachyderm.io/@tehstu/112593681979211485",
"web"
],
[
"proxy",
"https://hachyderm.io/users/tehstu/statuses/112593681979211485",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://hachyderm.io/users/tehstu/statuses/112593681979211485",
"pink.momostr"
]
],
"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": "b7a35f36e5e2c7c6d54cca5c91a232aef85c919cb5fa38a55749ae377fa9f72ecff74a9cd2003d2fa56c8d5d8872dd97080c552f766baec64a455127c04bff2d"
}