app79 common wisdom, helpful code and useful apps

28Jul/081

Design Patterns 101

Principles

1) Program to an interface rather than an implementation.

2)  Composition and delegation result in runtime flexibility and should be favored to inheritance.

3) Find out what varies and encapsulate it.

Types of Patterns

:: Creational (factory, prototype, singleton)

:: Structural (adapter, proxy, façade)

:: Behavioral ( State, Visitor, Template Method, Strategy)

Notes

- Good when used correctly

- Bad when used like hammer with no nails

Filed under: applications, design 1 Comment

Recent Posts

Archives

Blogroll

Categories

Tags

cartoon corporate email first funny how to internet internet explorer javascript linux computers os management office marshmallow theory onchange sadness singularity no theory robot stack overflow tech support tutorial upside down computer video youtube