On 12/15/2014 09:54 AM, Jørgen Kvalsvik wrote:
On 12/15/2014 09:15 AM, Joakim Hove wrote:
I’m also extremely skeptical to global variables – and singletons are in
my opinion just glorified global variables; however I have decided I am
old enough to make an exception for logging. Asking google about the
topic I also get the impression that singleton is a very common pattern
for log functionality.
It's a common pattern, surely, but I'm still not convinced it's the
better idea.
Well, just so we are all on the same page, here is an classic IBM
doc on singletons [1]. Here is another doc that offers some ideas that
should at least be considered in the discussion. [2]
hth,
James
[1] http://www.ibm.com/developerworks/library/co-single/
[2] http://gameprogrammingpatterns.com/singleton.html
_______________________________________________
Opm mailing list
Opm@opm-project.org
http://www.opm-project.org/mailman/listinfo/opm