Articles by Ignatius Teo

Build Automation with Composer Scripts

Build Automation with Composer Scripts

You know that Composer is a resolver for managing external project dependencies and versioning constraints, but is that all it does? With a little creativity, certainly not! In this article you’ll see how Composer can also be used as a basic build automation tool.

Understanding the Observer Pattern

Understanding the Observer Pattern

In this article you’ll learn how to implement the Observer Pattern, a behavioral design pattern which defines a one-to-many relationship between objects such that, when one object changes its state, all dependent objects are notified and updated automatically.

Understanding the Factory Method Design Pattern

Understanding the Factory Method Design Pattern

Building things can be tough when you can’t anticipate what type of objects you’ll need to create or how to create them. The Factory Method design pattern can be applied in such situations where you have a set of component classes but won’t know exactly which one you’ll need to instantiate until runtime. This article will teach you how to implement the pattern to localize the construction of different objects.

© 1998-2012 SitePoint Pty. Ltd. All Rights Reserved