Wednesday, October 31, 2018

Design Patterns Are Indicated by Problems

If patterns don't live in code, drawings, or any implementation artifacts, then where must they live.

Some have suggested that they live in problems. There is substantial evidence to support this claim.

I'm not sure if I'm totally on board with the idea that a design pattern lives in a problem but I will definitely agree that the problem you are addressing is one of the primary factors influencing which pattern applies.

In other words: problems indicate patterns.

Two kids sit on or against children's furniture, working intently on computers. Mom is holding a ghost costume and a broom with a witch's costume. She says "Have either of you heard of the Trick or Treat pattern?"