Observers and The Coolness

So, if I’m getting it right – the cool thing about observer patterns (in as dumb words as possible) is that you can have this one piece of code of that sees what all these other pieces of code is doing and when those other pieces of code do the particular thing it’s looking for have them state it so our stalker says “hey I saw that” and in turn activates its own super(creepy)power of doing something else (maybe not wanted) in response. The other pieces of code that are saying these things happened usually not caring if multiple of the constant stalkers see the random thing and do something or if their are no stalkers – either way it doesn’t get a chill up its spine.

If someone wants to correct me before I go off the deep end that’s good to. Flooding me with random projects also much appreciated.

Privacy & Terms