Well, as for why there are numerous arguments against using literals and i can always think of some for using them.
For example take the following code
Could list a lot of examples, but it all comes down to, primarily, readability (the compiled code is the same, tho some languages support objects as constants which may have different semantics but obviously this does not include Galaxy) .
And yes this thread would be a bit redundant, however the Wiki does not contain most of this information.
Why would you prefer literals over constants? Glad i don't have to work with your code to put it that way.
Anyhow whatever rocks your boat i suppose, even tho it's a horrible practice.
Well, as for why there are numerous arguments against using literals and i can always think of some for using them. For example take the following code
and tell me which parameter is the key code.
Now using constants that function call is alot more readable and clear.
Could list a lot of examples, but it all comes down to, primarily, readability (the compiled code is the same, tho some languages support objects as constants which may have different semantics but obviously this does not include Galaxy) .
And yes this thread would be a bit redundant, however the Wiki does not contain most of this information.
Why would you prefer literals over constants? Glad i don't have to work with your code to put it that way. Anyhow whatever rocks your boat i suppose, even tho it's a horrible practice.
See the old pastes, http://paste.sc2mapster.com/1979/. There is a more recent one on github somewhere, but can't remember by whom.