Re: [PHP] Should I go with the Singleton Pattern or wait for 5.3?
- From: dmagick@xxxxxxxxx (Chris)
- Date: Tue, 15 Jul 2008 10:10:39 +1000
Luigi Perroti wrote:
Hello, I'm planning out a simple project and most probably I will need
the functionality provided by the Singleton pattern.
However with the next 5.3 release I would be able to conveniently use
classes directly without instancing them.
This would be a comparable option thanks to late state binding and the
possibility to reference the class using a variable.
What path do you suggest I should take? I can wait for the 5.3 release
since I'm not in a hurry.
I would like to hear your opinions in particular regarding the
performance and code maintainability aspects.
Is this a decision for the whole project or just one particular part of
it? Can that one part be put off until later or does it need to be done
first?
--
Postgresql & php tutorials
http://www.designmagick.com/
.
- Follow-Ups:
- Re: [PHP] Should I go with the Singleton Pattern or wait for 5.3?
- From: "Luigi Perroti"
- Re: [PHP] Should I go with the Singleton Pattern or wait for 5.3?
- References:
- Should I go with the Singleton Pattern or wait for 5.3?
- From: "Luigi Perroti"
- Should I go with the Singleton Pattern or wait for 5.3?
- Prev by Date: Re: [PHP] Math Weirdness - Can it be done with integers alone??
- Next by Date: Re: [PHP] IPv6 validation
- Previous by thread: Should I go with the Singleton Pattern or wait for 5.3?
- Next by thread: Re: [PHP] Should I go with the Singleton Pattern or wait for 5.3?
- Index(es):
Relevant Pages
|