Friday, November 26, 2004

Some mandates of the design pattern community

Here are some mandates of the design pattern community.

  • Find what varies and encapsulate it.
  • Favor composition over inheritance.
  • Design to interfaces, not to implementations.

I quoted from "Design Patterns Explained" by Alan Shalloway and James R. Trott.