The Command Pattern in Javascript and why you should love it
One pattern that I love to use in rich javascript applications is the Command Pattern. By embracing it you unlike your program to the ability to have multi-undo events, macro recording, but more and more prevalent in the sort of sites you see today, the way to distribute events to multiple clients (browsers) at once. Another advantage is it makes you app really easy to test - you can fire the Commands at your app and do some very deep tests on rich interfaces.
The pattern is described by having the following objects…
Read more about The Command Pattern in Javascript and why you should love it
(2 minutes)