Coders' View Blog: The Strategy Pattern Using PHP

Courtesy PHPDeveloper.org  Fri, 05/29/2009 - 10:14

On the Coders' View blog there's a recent post looking at using the strategy design pattern in your PHP application.

In the strategy pattern, algorithms are extracted from complex classes so they can be replaced easily.

For example, the strategy pattern is an option if you want to change the way pages are ranked in a search engine.

Think about a search engine in several parts - one that iterates through the pages, one that ranks each...


 

More related items

Ask About PHP: Codeigniter: Handling errors
In a new post from the Ask About PHP blog they look at handling different types of errors in a popular PHP framework, CodeIgniter, most being included with the framework. The way I see it,...

Wb Developer Juice: 10 baby steps to install...
New from the Web Developer Juice blog there's a tutorial looking to help you get a memcached server up and running and make it accessible to your PHP applications. Thinking of implementing...

javascript's escape and encodeURI vs. PHP $_POST -...
I just stumbled upon an odd encoding issue with a web application. Basically, data is coming into our PHP application through a Javascript's XMLHttpRequest (ajax). The data is sent as a...

SanDisk SDMSM2-008G-A11M 8GB M2 Memory Stick Micro...
The Memory Stick Micro (M2) is approximately one-third the size of the existing Memory Stick PRO Duo. The Memory Stick M2 continues the Memory Stick PRO Duo legacy by supporting full...

Linksys WRT610N Simultaneous Dual-N Band Wireless...
The sleek Simultaneous Dual-N Band WRT610N Router sets a new standard for design, expanded bandwidth, and robust performance. It's the ideal router for all your current and future digital...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com