Top JavaScript Frameworks Compared

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Top JavaScript Frameworks Compared - Presentation Transcript

    1. HSTW - 102 A Harbinger Systems White Paper Five JavaScript Frameworks A Point-by-point Comparison Contents Introduction................................................ 2 A Word on the Comparison Attributes ...... 2 Five JavaScript Frameworks..................... 3 Your Choice of JavaScript Framework..... 5 Case Study: Enhanced Learning Management System with Ext JS .............. 6 Date: March 3, 2009 Website: www.harbinger-systems.com Web 2.0 Practice Email: web20@harbingergroup.com © 2009, Harbinger Systems, All Rights Reserved
    2. Introduction There are a multitude of JavaScript frameworks available today for programming rich client-side interactions in web applications. With many such different options, it is important to choose a framework that not only serves your current requirement, but also serves you in the long run. In this paper, we draw up a visual comparison between Ext JS and four other popular JavaScript frameworks: Prototype, Dojo, JQuery and YUI. In addition to feature-set and technical comparisons, we also look at parameters such as community support, design principles and quality of documentation and samples to provide a sense of the framework’s durability. We will then explore Ext JS in some detail and identify some of its salient features. Finally, we present a case study where Ext JS was used as the JavaScript framework of choice to enhance a popular Learning Management System by providing Web 2.0 features. A Word on the Comparison Attributes We chose the comparison attributes based on the key goals that JavaScript frameworks need to achieve in a web application. Following are some of the key attributes that we based our comparison on: Usability features that reduce user clicks and provide an intuitive interface Needless to say, being client-side technologies, these frameworks need to model user interactions extremely well. For example, features such as layout management, look and feel, consistency across browsers, all contribute immensely to a successful web application and these frameworks need to stand up to the challenge. Quality and extensibility of widget library and framework objects Having a rich library of widgets is important, as it indicates the framework’s commitment to developers. However, few widgets of any complexity are used in applications exactly the way they exist in the library. Hence, the ability and ease of extending and customizing them is a critical factor in the framework’s practical usefulness. Scripting capabilities including data modeling and ease of event and error handling Frameworks and technologies that adhere to solid design principles and intuitive scripting constructs have a much better chance of going a long way than the ones that have awkward constructs or have design shortcuts. Good modeling ability and intuitive structures breed a community of developers. Most importantly, it also means that when the relevant part of the industry is ready for its next big upheaval, this framework is the one that it relies heavily on. Performance parameters such as speed and binary size With the other promises that the frameworks have to live up to, tradeoffs such as ones between size and speed or design elegance and performance kick in and become a big challenge. The appropriate balance between these tradeoff elements again defines the practicality and acceptance of the framework. Integration capabilities, availability of support and developer network A framework’s interoperability with other technologies, and sometimes even competing frameworks, plays an important role in its success and acceptance. Elements like quality of documentation, availability of support and the nurturing of a developer community around the framework are all features that create immense value and provide an ecosystem for the framework to thrive in. © 2009, Harbinger Systems, All Rights Reserved Page 2 of 7
    3. Five JavaScript Frameworks Figure 1 shows the comparison of the five JavaScript frameworks that we researched along these important factors. Figure 1: Comparison of five JavaScript frameworks © 2009, Harbinger Systems, All Rights Reserved Page 3 of 7
    4. Ext JS and JQuery come out the winners with respect to their support of basic technical features. Both are upcoming frameworks that show commitment towards robustness of design and conceptual modeling that is needed for serious web applications. Let’s look at some of the salient features of Ext JS: Ext JS has a rich library of widgets that work right out of the box on different browsers. It comes with cross-browser DOM, due to EXT JS QUICK FACTS which the widgets look exactly the same in most of the popular browsers. These Rich library of cross-browser widgets are also very extensible due to a compatible widgets robust component model and Ext JS’s good “Build your own Ext JS” use of design patterns. Integrates with other JavaScript Ext JS and JQuery, both integrate with other libraries JavaScript libraries through the use of appropriate adapters. This makes them Component model with support for good contenders for your existing extensions and plugins applications built using another framework. * Over 20 design patterns, including It provides a “build your own Ext JS” feature Flyweight, Façade, Visitor and that allows you to build your own custom Observer ext.js file with only the components you need. Since the size of Ext JS binaries can Supports AJAX, DHTML and DOM be higher than most other frameworks, this scripting is especially useful. In addition, techniques like compression and Ext JS’s Content Hosted on CacheFly, a free Content † Delivery Network are also used to good Delivery Network (CDN) effect in managing its binary size. Commercial and open source licenses Ext JS supports a robust client-side data (under GPL v3 with FLOSS exception) model. This makes its design scalable and Supports IE (6.0+), FireFox (1.5+), working with such things as JSON formats much easier. It enables developers to build Safari (3.0+), Opera (9.0+) and Google serious applications, and is a vital aspect Chrome that few other JavaScript libraries, including JQuery, can claim. On performance parameters such as speed and responsiveness, Ext JS emerges a clear winner among its peers. Ext JS has a strong developer community and example usages that ease the use of its rich widget library. Ext JS also fairs well in its overall modeling of complex user interactions, although JQuery scores somewhat higher in this respect. * Build your own Ext JS - http://extjs.com/products/extjs/build/ † Ext JS is hosted on its own Content Delivery Network through a partnership with CacheFly (http://cachefly.com) © 2009, Harbinger Systems, All Rights Reserved Page 4 of 7
    5. Your Choice of JavaScript Framework Your initial choice of JavaScript framework is an important one and the differences between these frameworks can be subtle. Being client-side technologies, these frameworks handle multiple priorities like usability, scripting ease, support for browsers, performance and many others. Ext JS is emerging as an “industry-strength” framework and is being increasingly used in the enterprise. It is among the best performing frameworks. Although at first glance, the binary size of Ext JS comes out to be on the higher side, it is partly due to its rich library and can be effectively managed through intelligent use of compression, CDN and custom builds. Ext JS comes in both open source and commercial licensing models, and it is important to study the fine print to understand which one suits your need. Tackling framework-related issues and tradeoffs requires sustained research and in-depth understanding of their evolution. Harbinger Systems helps companies make such framework choices and use them optimally for their application. Read on for a case study on how Harbinger Systems helped a company with the choice of a JavaScript framework, and developed a Web 2.0 interface over their existing application. © 2009, Harbinger Systems, All Rights Reserved Page 5 of 7
    6. CASE STUDY Enhanced Learning Management System with Ext JS Situation Harbinger’s customer is a diversified company that provides vital products and services to customers in more than 60 countries and employs over 100,000 people across multiple business lines. The company uses a popular Learning Management System (LMS) for all their internal training needs across all business units. The business units themselves are very diverse in their services and have their own modules to match their respective solutions and line of business. The business unit managers schedule trainings and use the LMS to define and monitor progress of their employees. Challenge The company wanted to improve the LMS to provide better experience to the learners. The user interface had to be provided to an exacting standard of usability without compromising on performance. Since the business units themselves were very diverse, they needed different modules and configurable layouts with minimal programming effort. Hence, the system had the dual objective of improving learner engagement and fulfilling the customization and layout management need of the business unit managers. Solution The choice of right AJAX framework was critical for the customer due to the user interface, layout and configuration requirements. Harbinger studied many open source AJAX frameworks for their user interface quality, customizability, performance and overall maturity and durability. Ext JS was chosen as the framework that best suited the company’s need. It had the richest selection of widgets and components in its library. It could be customized extensively using themes, and was very good at handling layouts. In addition, the performance of Ext JS was the best in its class. Many widgets and components from the Ext JS library were extended and customized during development. The availability of developer community and the quality of documentation contributed significantly to the smooth development of the system. Benefits The system provides an order of magnitude improvement to the LMS. The company is able to configure the look and feel, layout and the right accessibility of modules to its business unit managers through a new Web 2.0 interface and a simple XML file. The business unit managers are able to manage their modules and course schedules with great ease. For example, where course scheduling involved complex data entry and the use of forms earlier, the managers now use a simple drag and drop interface over a calendar. The learning experience of users of the LMS has also greatly improved through the use of innovative widgets built and extended from the Ext JS library. Learn More: See how Web 2.0 is used inside an enterprise for the makeover of an ERP tool in the Harbinger Systems paper, HSTW-101. Write to web20@harbingergroup.com for the paper. © 2009, Harbinger Systems, All Rights Reserved Page 6 of 7
    7. Sources 1 http://www.extjs.com/ 2 http://www.techpresentations.org/JavaScript_Library_Overview 3 http://designingwebinterfaces.com/ 4 http://www.ja-sig.org/wiki/display/UP3/Javascript+Toolkit+Comparison 5 http://www.kauriproject.org/wiki/g1/g4/g2/69-kauri.html?layoutType=plain 6 http://extjs.com/blog/2007/07/10/css-selectors-speed-myths/ 7 http://www.windley.com/archives/2008/10/prototype_framework_is_a_javascript_extension_not_just_a_library.shtml 8 http://alex.dojotoolkit.org/2005/12/file-uploading-with-dojo/ 9 http://open.silverstripe.org/wiki/development/javascriptplatform/Research Harbinger Systems Pvt. Ltd. (www.harbinger-systems.com) Your partner in technology innovation About Harbinger Systems: Harbinger Systems (www.harbinger-systems.com) is a leading provider of software engineering services to some of the world's best product companies. Harbinger’s Web 2.0 practice provides software development and testing services for the rich user interface and collaboration needs of enterprise businesses and social web communities. Write to us at web20@harbingergroup.com to know more about our Web 2.0 practice. © 2009, Harbinger Systems, All Rights Reserved Page 7 of 7

    + Harbinger SystemsHarbinger Systems, 3 weeks ago

    custom

    215 views, 1 favs, 0 embeds more stats

    There are many JavaScript frameworks available toda more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 215
      • 215 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories