On 7 Nov 2011, at 10:59, Michael wrote:

> I've almost always been able to avoid globals when writing 
> object-oriented web applications.  However, it was a question I also 
> contemplated recently when trying to decide the best way to make my 
> application configuration settings globally accessible (so I'd be 
> interested to hear people's preferred method on that as well).  The 
> singleton approach that Walt mentioned seems the most appropriate to me, 
> so far.
> 
> What situation are you considering using globals for?

I'm actually not considering using them. I'm writing the coding standards for a 
framework update and am planning on stipulating that they are not to be used.

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to