|
Posted by Sanders Kaufman on 12/03/07 07:13
"Willem Bogaerts" <w.bogaerts@kratz.maardanzonderditstuk.nl> wrote in
message news:4750130c$0$237$e4fe514c@news.xs4all.nl...
> As with so many things, you don't really NEED them. Singletons are (or
> are often abused as) global variables: You never know when these objects
> are constructed, and have very little control over it. When it comes to
> unit testing, they can be a real pain in, you know where.
> The main problem is that they do not abide the Law of Demeter: they do
> not come in through the interface of your objects.
Willem - could you explain that last sentence, please?
Navigation:
[Reply to this message]
|