If I have an variable int d; // some comment
.
Will that be better than int daysElapsedSinceBlahBlahBlahBlah
with no comment.
It is more reabale, but will it waste memory?
You marked this as language-agnostic
but the example corresponds to C-languages family. In C-like languages the name of the variable shouldn't waste memory, it's just a label for the compiler. In the resulting binary code it will be replaced by a memory address.
In general, there is no benefit in storing the name of variable inside resulting binary, the only usages I can think of is some extreme debug, reverse-engineering or some weird form of reflection. None of these are normal use-cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With