Dmitry Kandalov on Nostr: Not many people consider this but CONSTANTS DON'T NEED TO BE UPPERCASE. They're not ...
Not many people consider this but CONSTANTS DON'T NEED TO BE UPPERCASE. They're not the most important thing in the code and don't need the emphasis (e.g. unlike mutable global variables). The convention dates back to the early days of C and the need to distinguish symbolic constants defined as macros from variables 👉
https://accu.org/journals/overload/22/121/wakely_1923 It's never too late to stop the cargo cult! Can we have it in #Kotlin 2.0 please? 😅
Published at
2023-09-19 12:05:00Event JSON
{
"id": "8810072c7159f3b23c2a80bbfb4d5a49c5bd5a8b8cfe2ba79297d698cec7a355",
"pubkey": "864bf94bd0d4548dc944d6a5a49823d32bf4c1de273d4f7376fad8f82e163a42",
"created_at": 1695125100,
"kind": 1,
"tags": [
[
"t",
"kotlin"
],
[
"proxy",
"https://mastodon.social/users/dkandalov/statuses/111091718585666386",
"activitypub"
]
],
"content": "Not many people consider this but CONSTANTS DON'T NEED TO BE UPPERCASE. They're not the most important thing in the code and don't need the emphasis (e.g. unlike mutable global variables). The convention dates back to the early days of C and the need to distinguish symbolic constants defined as macros from variables 👉 https://accu.org/journals/overload/22/121/wakely_1923 It's never too late to stop the cargo cult! Can we have it in #Kotlin 2.0 please? 😅",
"sig": "207d3c1e310127fc3244207dfb6cd50b9df28966722432527ee6d7e65edf8f29d80118b2efaf7f121c4eff972d5da744bb59ad83e619d65f0b8fa39918da7067"
}