News Feed
Sections




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

DevShed:
Lazy and Eager Loading in PHP 5
September 11, 2009 @ 12:49:30

On DevShed today there's the start of a new series looking at design patterns in PHP applications. In this first part of the series, they look at lazy and eager loading.

In the case of PHP 5, which is better suited for developing web-based programs, there are two complementary design patterns that can be of great help in building faster and more reliable applications. Of course, as this article's title suggests, I'm talking about the lazy and eager loading patterns. Despite their rather funny names, they are pretty easy to implement in PHP 5-controlled environments.

To illustrate, they've created a sample class that uses a few class properties and a __toString method to return the values.

0 comments voice your opinion now!
lazy eager loading tutorial designpattern


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Using Google Translate API with PHP

ServerGrove.com: Creating console commands with Symfony2

DZone.com: PHPUnit_Selenium

Aaron Pollock: Setting up a PHP development environment on a VPS

PHPMaster.com: Creating Web Services with PHP and SOAP, Part 1


Community Events





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


voicesoftheelephpant laravel update podcast package security language tool opinion introduction framework library series version symfony mvc release composer community interview

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