Mark’s Site

Pensieve for coding and golf :-)

Archives for the ‘2.3. Design Patterns’ Category

Singleton Pattern

By admin • May 17th, 2008 • Category: 2.3.1. Creational Patterns

This is important, listen up! The singleton design pattern is used to ensure a class has only one instance, and that global access to that instance is available. In other words, it restricts instantiation of a class to one object.



Design Patterns Defined

By admin • May 17th, 2008 • Category: 2.3. Design Patterns

What are design patterns and why do I want to know about them?



Decorator Pattern

By admin • May 17th, 2008 • Category: 2.3.2. Structural Patterns

A useful example that I thought I should share