Design Pattern Riddle #6

q. You might think I am the real thing,
But I’m just a thin outer case.
I typically call methods on another machine,
which might make bug tracking hard to trace.

a. Proxy

~/riddle by me

Read More »

Design Pattern Riddle #5

q. Some say that I have schizophrenia;
I change my behavior depending on my mood.
You might think I am someone else,
But I’m just a class with an attitude!

a. State

~/riddle by me

Read More »

Design Pattern Riddle #4

q. When there are many way to do one thing,
And you need to switch from that to this.
Just abstract away those different pieces;
Then you’ll be living in encapsulated bliss.

a. Strategy

~/riddle by me

Read More »

Design Pattern Riddle #3

q. You might call me a herald of the news
I distribute it to those that subscribe
Some say I follow the Hollywood principle,
But I’ll tell you that c# delegates and I jibe.

a. Observer

~/riddle by me

Read More »

Design Pattern Riddle #2

q. If you find yourself needing more functionality,
And your needs are dynamic and versatile,
Then I’m a good alternative to subclassing.
You will find that using me quite worthwhile.

a. Decorator

~/riddle by me

Read More »