Agile & Lean Management

Refactoring the Software Development Process

Browsing Posts tagged Creational Patterns

The Prototype pattern is a simple pattern intended to provide you with a way to dynamically select which object to instantiate, and to return a clone of a prototypical object. This is a relatively simple pattern. You create a prototypic reusable object and use it as a base for other objects. This pattern comes in [...]

The Builder pattern is used to separate the construction of complex objects from their representation so the construction process can be used to create different representations. The construction logic is isolated from the actual steps used to create the complex object. What I like about the builder pattern is that it cloacks the actual construction [...]

The Singleton pattern is used to restrict the instantiation of a class to just one object. The singleton pattern must satisfy the single instance and global access principles. A nice pattern, but: Why not use a global static variable? The answer lies in the fact that this generally is not considered object-oriented. However, there are [...]

The factory method pattern  deals with the problem of creating objects without specifying the exact class of object that will be created. The factory method design pattern handles this problem by defining a separate method for creating the objects, whose subclasses can then override to specify the derived type  that will be created. More generally, [...]