I can see your point.. It would become overly verbose if you were to name every variable with its life story just to ensure it's unique..
I would probably prefer structuring the scopes a little better and group my variables into objects and classes.. you could have calendar.appointments and stage.appointments.. so you can still use the same name in different scopes as long as they don't overlap..
I must admit I don't fully understand why CS works this way.. I guess it just comes down to a matter of taste.. I'm not trying to prove anyone wrong here.. just providing an alternate perspective..
View all comments
Show parent comment
1
u/[deleted] Jul 26 '13 edited Jul 26 '13
I can see your point.. It would become overly verbose if you were to name every variable with its life story just to ensure it's unique..
I would probably prefer structuring the scopes a little better and group my variables into objects and classes.. you could have
calendar.appointmentsandstage.appointments.. so you can still use the same name in different scopes as long as they don't overlap..I must admit I don't fully understand why CS works this way.. I guess it just comes down to a matter of taste.. I'm not trying to prove anyone wrong here.. just providing an alternate perspective..