in reply to Re^8: what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
in thread what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
overriding things for testing, tweaking configuration based on the context, etc. all become much harder than if I'd passed in my own configuration object
Well if you want to change your configuration depending upon the context, then of course you don't want a singleton... which is all about never changing (or overriding) anything wherever you are. Of course it's globals in disguise, but it's globals on steroids too, because you can share your globals across packages as needed :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
by adrianh (Chancellor) on Mar 08, 2006 at 11:20 UTC | |
by wazoox (Prior) on Mar 08, 2006 at 12:38 UTC | |
by adrianh (Chancellor) on Mar 09, 2006 at 10:50 UTC | |
by wazoox (Prior) on Mar 09, 2006 at 15:04 UTC | |
by adrianh (Chancellor) on Mar 10, 2006 at 14:22 UTC | |
|