News Feed
Sections




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

DevShed:
Introducing the Strategy Pattern
February 27, 2007 @ 13:50:00

DevShed is taking a look at another design pattern today in part one of their look at the Strategy Pattern:

That's exactly the case with the subject of this article, the strategy pattern. To put things more clearly, I'm sure that you always validate adequately all the forms included in your web sites. First off, you create a few validation functions (or classes), then use these functions to check the validity of the data supplied by users, and finally determine the course of action to be taken accordingly.

To make the concept clearer, they Create a simple example - a file handling class that can read and write data to the file of the developer's choosing. This base class is then used inside their StrategySelector class to make saving both HTML and XML data as simple as a basic string.

0 comments voice your opinion now!
strategy pattern tutorial file handling xml html strategy pattern tutorial file handling xml html


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Devise Web 2.0 applications with PHP and DHTML (Part 1)

DevShed: Generating View from MySQL to Simulate the Model-View-Controller Schema in PHP

AlternateInterior.com: Communicating with threads in PHP

Raphael Stolt's Blog: Utilizing Twitter lists with Zend_Service_Twitter

NetTuts.com: Deploy your WordPress Blog to the Cloud


Community Events





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


list threedevsandamaybe api conference symfony deployment development interview introduction code tips community release bugfix framework podcast language series laravel zendserver

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