This is more of a question to discuss.I do not think that it will ever be asked in
SCEA.
The mediator
pattern [GOF] says "Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and lets you vary their interaction independently"
I was just thinking can we implement mediator pattern in javascript or DHTML(Client Side).Javascript is also an object based language and supports a lot of object oriented features.If I have a situation like I have a set of text boxes and a set of buttons and condtionally I have to enable and disable them.If I am using a fat client like SWING or even
applet, it can be done, but what about javascript.Can we do it at all???
