A great deal of ‘talk’ about this abounds, but despite this course and much searching (i.e. one can find a ton of info on objects), I still feel I’ve not read a really good article on a coding practice or paradigm for avoiding these.
I’ve some of my own thoughts on how to make it work, but don’t really feel satisfied by these solutions.
I think the issue is, in many cases, there is a common body of data that each function in a program has to work upon.
Thus my question, what is the elegant/accepted way to expose the data to functions, while avoiding the global ? Any references would be appreciated.