Mittwoch, 5. März 2014

Radar: Using inheritance patterns to organize large jquery applications

Blog post by Alex Sexton

https://alexsexton.com/blog/2010/02/using-inheritance-patterns-to-organize-large-jquery-applications/

Radar: How to manage large jquery apps

Slides by Alex Sexton:

http://de.slideshare.net/SlexAxton/how-to-manage-large-jquery-apps

Quote: Script Loader RequireJS and curl.js

Addy Osmani:

"There are a number of great loaders for handling module loading in the AMD and CommonJS formats, but my personal preferences are RequireJS and curl.js. Complete tutorials on these tools are outside the scope of this book, but I can recommend reading John Hann's article about curl.js and James Burke's RequireJS API documentation for more."

http://msdn.microsoft.com/en-us/magazine/hh227261.aspx

Source: http://addyosmani.com/resources/essentialjsdesignpatterns/book/#modularjavascript


Quote: Developers fall back on variations of the module or object literal

Addy Osmani:

"Unlike some more traditional programming languages however, the current iteration of JavaScript (ECMA-262) doesn't provide developers with the means to import such modules of code in a clean, organized manner. It's one of the concerns with specifications that haven't required great thought until more recent years where the need for more organized JavaScript applications became apparent.
Instead, developers at present are left to fall back on variations of the module or object literal patterns, which we covered earlier in the book. With many of these, module scripts are strung together in the DOM with namespaces being described by a single global object where it's still possible to incur naming collisions in our architecture. There's also no clean way to handle dependency management without some manual effort or third party tools."
 
 

Quote: backbone.js vs. knockout.js

Addy Osmani:

"To conclude, I personally find KnockoutJS more suitable for smaller applications whilst Backbone’s feature set really shines when building anything non-trivial. That said, many developers have used both frameworks to write applications of varying complexity and I recommend trying out both at a smaller scale before making a decision on which might work best for your Project."

Source: http://addyosmani.com/resources/essentialjsdesignpatterns/book/#detailmvvm