views:

1003

answers:

1

I've started to read about the Context design pattern. Here's what I understood from the text :

  • you have a map containing all your variables

  • you pass it around to whoever needs it, so that you won't have to send all the variables as method parameters

Did I "get" it?

+1  A: 

I think you got it.

However, I also think it is more of an anti-pattern to be avoided. See why here.

See also Law Of Demeter

KaptajnKold