Strategies For Global Data ( hey it happens… )

[ disclaimer: I see this technique as 'damage control' and not a best (or even good) practice. Yes, globals are to be avoided ]

Twitter is a wallflower’s dream… anyone can eavesdrop and quietly judge from afar….
Last night Jesse Freeman , Ralph Hauwert and Robert Penner had a little discussion via Twitter about statics & globals. It starts here. Robert encapsulates the danger of globals with this:

Statics are evil when they puncture encapsulation and hide dependencies that impale anyone who tries to use them somewhere new.

(more…)