Null Object Pattern - Relation To Other Patterns

Relation To Other Patterns

It can be regarded as a special case of the State pattern and the Strategy pattern.

It is not a pattern from Design Patterns, but is mentioned in Martin Fowler's Refactoring and Joshua Kerievsky's book on refactoring in the Insert Null Object refactoring.

Chapter 17 is dedicated to the pattern in Robert Cecil Martin's Agile Software Development: Principles, Patterns and Practices

Read more about this topic:  Null Object Pattern

Famous quotes containing the words relation to, relation and/or patterns:

    “Hesitation increases in relation to risk in equal proportion to age.”
    —Ernest Hemingway (1899–1961)

    “The difference between objective and subjective extension is one of relation to a context solely.”
    —William James (1842–1910)

    “The ninety percent of human experience that does not fit into established narrative patterns falls into oblivion.”
    —Mason Cooley (b. 1927)