Categories


Loading feed
Loading feed
Loading feed

PHP in Action - Chapter 7, Design Patterns. Part - III


You know you’ve been waiting for it, here it is. The final installment of Chapter 7 of PHP in Action by Dagfinn Reiersol. Without further comment, here’s the introduction to this section in Dagfinn’s own words.

Part 3 Introduction
PHP in Action – Dagfinn Reiersol

In this section we discuss an Iterator and a Composite.

An Iterator is a “canned loop.” It encapsulates the process of taking elements one by one from a data structure or other source, making the process appear similar regardless of the source.

A Composite is the pattern for representing tree structures such as hierarchical menus. It makes the nodes of the tree appear as similar as possible, making it easy and flexible to make changes to the tree.

Now, the link.

In case you missed them, here are the links to Part I and Part II.

=C=

Comments


Monday, March 5, 2007
LINK TO PDF IS BROKEN
7:47AM PST · exceptione
LINK IS BROKEN?
8:39AM PST · Joshman [unregistered]
FIXED
8:53AM PST · Cal Evans (editor)
Loading feed