News for hackers. Stuff that matters.
Re:Extending Your jQuery Application with Amplify.js by Hipchan on Wednesday April 27, 2011 @11:19AM (#2489761)
It's really important to put the BENEFITS at the top. Do I really want to read all this just to find out what it does?
Re:Extending Your jQuery Application with Amplify.js by euroclydon on Wednesday April 27, 2011 @10:32AM (#2489600)
I gave up writing my "JavaScript Applications" in a closure the way you see in this tutorial. The reason is, there's no good documentation tool that will parse it. I'd much rather use namespaces to keep my code from polluting the global namespace and then I can use jsDoc.

   /** @namespace */
   var MyApp = {}
   
   /** My Class
   * @constructor
   * @param {Object} options
   */
   MyApp.MyClass = function(options) {
   ...
   };
Re:Extending Your jQuery Application with Amplify.js by MatthewPhillips on Wednesday April 27, 2011 @11:00AM (#2489701)
should be: var MyApp = MyApp || {};
Re:Extending Your jQuery Application with Amplify.js by MatthewPhillips on Wednesday April 27, 2011 @11:06AM (#2489716)
I'm confused, why do I need to use pubsub to separate updating an item from requesting an item?
Re:Extending Your jQuery Application with Amplify.js by rojoca on Wednesday April 27, 2011 @12:13PM (#2489971)
It seems this is mostly about organizing your application consistently. It's easy (particularly with jQuery) to quickly amass large collections of event handlers which are later consolidated into the logic of an application. This library provides an abstraction to make it easier to switch that process around. Logic/API first; implementation second.

Of course you can still do that with plain jQuery...