Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
YUI &jQuery:To Build Large Scale JavaScript App                 Morgan Cheng                 @morgancheng
It is Not Religious Warhttp://www.quora.com/How-could-YUI3-improve-its-image-compared-to-jQuery-MooTools-etchttp://www.ncz...
Single Metric is not Enough
Rosetta is not enough    http://www.jsrosettastone.com/
jQuery   YUI
Demo• http://jsfiddle.net/morgancheng/afX5b/• http://jsfiddle.net/morgancheng/HmsxA/• http://jsfiddle.net/morgancheng/9qgA...
jQuery doesn’t Scale
Scale!
What is required to be      Scalable?
Application LifecycleModule Management DOM, AJAX Utility
Application LifecycleModule Management DOM, AJAX Utility
Module Management
“The secret to building large apps is never build  large apps. Break you applications into small  pieces. Then, assemble t...
• Independent• Reusable• Agnostic to others
Event System   I know something                          I want to do something  happens. But I don’t                     ...
AMD: Asynchronous Module        Definition  define(     ‘module-name’,      [‘dependency1’, ‘dependency2’],  function(d1, ...
YUI Module Management YUI.add(‘module-name’, function(Y) {    // Change Y to change the world Y.foo = …; }, ‘version’, {  ...
Concatenate Modules
Application Lifecycle
• Bookmark-able• Navigable• SEO Friendly
So Many Choiceshttps://github.com/addyosmani/todomvc
MVC is not the only game in town
App Framework
Choose Gear According to YOUR Needs
Thank YouAny Questions?
Nächste SlideShare
Wird geladen in …5
×

YUI vs jQuery: to Build Large Scale JavaScript App

10.348 Aufrufe

Veröffentlicht am

Veröffentlicht in: Technologie
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • Hi there! Get Your Professional Job-Winning Resume Here - Check our website! http://bit.ly/resumpro
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • <br /><iframe width="350" height="288" src="http://www.youtube.com/embed/lw7RW3zcwcg" frameborder="0" allowfullscreen></iframe>
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

YUI vs jQuery: to Build Large Scale JavaScript App

  1. 1. YUI &jQuery:To Build Large Scale JavaScript App Morgan Cheng @morgancheng
  2. 2. It is Not Religious Warhttp://www.quora.com/How-could-YUI3-improve-its-image-compared-to-jQuery-MooTools-etchttp://www.nczonline.net/blog/2010/11/03/response-to-john-resigs-comments-about-yui/
  3. 3. Single Metric is not Enough
  4. 4. Rosetta is not enough http://www.jsrosettastone.com/
  5. 5. jQuery YUI
  6. 6. Demo• http://jsfiddle.net/morgancheng/afX5b/• http://jsfiddle.net/morgancheng/HmsxA/• http://jsfiddle.net/morgancheng/9qgAP/• http://jsfiddle.net/morgancheng/BeV2q/
  7. 7. jQuery doesn’t Scale
  8. 8. Scale!
  9. 9. What is required to be Scalable?
  10. 10. Application LifecycleModule Management DOM, AJAX Utility
  11. 11. Application LifecycleModule Management DOM, AJAX Utility
  12. 12. Module Management
  13. 13. “The secret to building large apps is never build large apps. Break you applications into small pieces. Then, assemble those testable, bite- sized pieces into your big application” — Justin Meyer, author JavaScriptMVC
  14. 14. • Independent• Reusable• Agnostic to others
  15. 15. Event System I know something I want to do something happens. But I don’t when this happens. But Icare how others handle don’t care who trigger it. it
  16. 16. AMD: Asynchronous Module Definition define( ‘module-name’, [‘dependency1’, ‘dependency2’], function(d1, d2) { // export something } );
  17. 17. YUI Module Management YUI.add(‘module-name’, function(Y) { // Change Y to change the world Y.foo = …; }, ‘version’, { requires : [ ‘dependency1’, ‘dependency2’ ]} );
  18. 18. Concatenate Modules
  19. 19. Application Lifecycle
  20. 20. • Bookmark-able• Navigable• SEO Friendly
  21. 21. So Many Choiceshttps://github.com/addyosmani/todomvc
  22. 22. MVC is not the only game in town
  23. 23. App Framework
  24. 24. Choose Gear According to YOUR Needs
  25. 25. Thank YouAny Questions?

×