You are here: Re: Singletons in PHP « PHP Programming Language « IT news, forums, messages
Re: Singletons in PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация