in reply to Re^5: Holding site variables
in thread Holding site variables
inside a package so they are properly namespace
Yes - they are in a namespace with package. Sorry, I forgot that bit as I typed the example instead of copying and pasting as I don't want to reveal actual names for security reasons.
use constants for items of data which won't change during a run
None of this configuration will change during a run, so there's a case for constants for all of it.
I just never think to use constants...not sure why!
Could you explain what the advantage here is in using a constant?
I understand that they can make it clearer that they will be constant and that the avoid "magic numbers". But in this case every variable in this namespace is constant so clarity is not an issue IMHO
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Holding site variables
by hippo (Archbishop) on Mar 21, 2024 at 22:31 UTC |