Reply to Re: instantiating an object fails (design patterns)

Your name:

Reply:


Posted by www.douglassdavis.com on 09/16/05 18:42

Marcin Dobrucki wrote:

>
> I usually do it so that inside the constructor, I do things that are
> very unlikely to fail (eg. set constants, etc), and then defer stuff
> that can fail (eg. getting stuff from DB, etc), to the initalizing
> function.
>
> Constructors are nice, coz then you can "$foo = new Object()". :)
>


thanks. i may do it this way.

[Back to original 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

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