Breadcrumbs
Design Patterns
-
Design Patterns in PHP
- Author
- Date
- Sat 8 Sep 2007 at 9:56
- Type
- Blog Entry
If you have ever picked up a book or visited a website about design patterns, it is almost certain the examples in those resources are in Java. However, Doug on the forums posted a link to the website Patterns for PHP, which focuses on design patterns in PHP. Currently they have articles on a good selection of design patterns: Singleton Registry Factory Abstract Factory Strategy Composite Decorator Lazy Initialisation Transfer Object For the most part these are the design patterns that people will use the most. If …
-
Global Variables
- Author
- Date
- Sun 26 Mar 2006 at 22:55
- Type
- Article
Globals are variables that can be accessed in any context of an application. Globals present the risk of creating complex and mutual dependencies, making your code twisted and tangled. Learn here about the dangers of using global variables and why/how you should dismiss them entirely.
