News for hackers. Stuff that matters.
Re:Javascript the right way by nahname on Tuesday September 11, 2012 @01:24PM (#4506648)
Almost every javascript library you use is a singleton, so your second sentence makes no sense. Check the example, it is just the module pattern. If a programmer wants to deviate away from a pattern, the language lock-in won't stop them.

Also, the command pattern is a great tool for handling undo/redo on a UI. I think you are being way to dismissive of some good advice. Just because someone is trying to share a better way of doing things that is based on ideas created in another language does not detract from their value.

Re:Javascript the right way by debacle on Wednesday September 12, 2012 @11:43AM (#4511168)
Can you give an example of a JavaScript library that is a singleton?