News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPFreaks.com:
Design Patterns - Strategy/Bridge, Value Object, Singleton (Registry)
October 10, 2008 @ 09:33:10

Following up on their introduction to design patterns, the PHP Freaks have posted tutorials covering three of the more popular patterns - strategy/bridge, value object and singleton.

  • Strategy and Bridge - The Strategy and Bridge patterns provide solutions to apply polymorphism in more flexible way than you can accomplish with only inheritance.
  • Value Object - The Value Object pattern has, just like the Singleton, to do with referencing and instances. In a way, the Value Object is the opposite of the Singleton: it's goal is to ensure NOT to use the same instance, under certain conditions.
  • Singleton and Singleton Registry - The Singleton pattern ensures that you are always dealing with the same, single instance, wherever in your application. The Registry pattern usually utilizes the Singleton pattern (hence "Singleton Registry") to make the same 'globalness' apply to objects who's classes weren't necessarily designed to

Keep checking back to their tutorials section for more design pattern tutorials.

0 comments voice your opinion now!
design pattern singleton registry valueobject strategy bridge


blog comments powered by Disqus

Similar Posts

Justin's Blog: 5 cool things you can do with windows and php

DevShed: Using Abstract Factory Classes in PHP 5 to Work with Online Forms

International PHP Magazine: Poll Question: The Biggest Advantage of PHP 5 is?

Smashing Magazine: Upcoming Conferences and Events for Designers and Developers in 2011

Padraic Brady's Blog: Zend Framework Blog App Tutorial - Addendum #2: Revised Design, Date Helper


Community Events











Don't see your event here?
Let us know!


support language install framework database component opinion release security symfony2 application package facebook hack composer unittest podcast introduction performance hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework