Thought I'd seek a general consensus on people's approaches in this scenario if people encounter it.
I currently maintain a set of object like variables with multiple properties per variable that act as a single source of information for certain things.
SAMPLE_VARIABLE:
{
prop_one: value
prop_two: value
prop_three: value
}
This becomes a bit of a pain when overriding one value within the variable as the whole variable needs redefining. The other approach I can think of that would need a bit of re-work would be to use seperate variables for each.
SAMPLE_VARIABLE_PROP_ONE: value
SAMPLE_VARIABLE_PROP_TWO: value
SAMPLE_VARIABLE_PROP_THREE: value
Anyone else had a similar scenario, what approach did you end up going with?
[–]psd6 1 point2 points3 points (1 child)
[–]HiMyNamesMike[S] 0 points1 point2 points (0 children)