How to select the JavaScript framework (JavaScript framework) _javascript tips

Source: Internet
Author: User

The rise of Ajax has brought new life to JavaScript, a plethora of JavaScript frameworks (JavaScript framework), some frameworks for summarizing and refining developer project experiences, and some frameworks for commercial companies, At the same time, open source and commercial two ways of publishing. These frameworks can greatly speed up the development of AJAX projects, but also face different learning curves, as well as architectural extensibility and so on. How to choose a JavaScript framework becomes a problem for developers and architects. If you're facing a problem like this, hopefully the following tips will help you with your choice of JavaScript framework.

What is your project requirement?
First ask yourself what this is, what the specific requirements are, is a common type of Web site or an online Web application, whether you need to deal with a large number of keyboard and mouse events, whether you need to give users various advanced AJAX features, Or as long as you implement a simple asynchronous page refresh and some simple DOM operations, if the latter, you can choose a relatively simple JavaScript framework, encapsulating basic XMLHttpRequest operations and DOM operations is enough.

Browser support
Different frameworks compatible browsers will be different, especially some advanced JavaScript frameworks that are not supported for lower-version browsers, and some that support IE and Firefox and are not supported by other browsers such as opera or Safari. So in the framework of the choice also take into account the system's target users, if the target users only use ie6.0 above browsers, then the framework of the choice of more room.

Is there a core development team behind the framework
Many frameworks are often developed by individuals at the time of business and may stop updating at any time, and if there is a team behind it, it can be a certain amount of code updates, bugs and some timely response to problems, while the quality of the code is also relatively standard.

Maturity of the framework
If a new framework has just been released, the use of people are often not much, if you rashly adopt, in the use of the process encountered problems, you may have to find a solution to help you or find information on the Internet is very difficult. Therefore, we have to consider this in this respect.

How often the framework is published and updated
A framework has a very high release update frequency indicates that the new function is added or the bug is fix the speed quickly, on the contrary a frame of six months does not have a version, basically can explain this framework has not been the developer attention, it is difficult to get new development.

The friendliness of the document
A framework, especially the relatively complex framework, if there is no adequate and user-friendly documentation, the learning curve will be relatively high, users in the use of the process often need to read the code and other external articles to learn how to use and solve some problems. So the document is also a very important factor.

Is there an active community
Some successful open source frameworks often have a community behind them, and we share the experience with each other to help solve the problems encountered during the use. Whenever you ask for help in such a community, you often get help from others quickly. Such a framework, even if not very mature at first, will soon develop.

Extensibility of the framework
In the actual project process, often a specific framework is difficult to directly meet all your needs, which requires you to do some customization and extension work, and if a framework is not very scalable, then you may have to adopt another new framework to achieve a specific requirement later in the project, Greatly increased the cost of the project. So choosing a framework that has very good extensibility, such as supporting plugin, can be a big help for your future system expansion.

Performance and network environment
different systems differ in their performance and functionality, such as an internet-based project that may consider more requirements in terms of performance and functionality, Many advanced JavaScript frameworks tend to be unsatisfactory in performance, part of the reason is that the encapsulation of too many functions, resulting in JS files will be very large, in the Internet environment, download this JS file will consume a lot of time, there is to be sure as the framework of extensibility, often done multi-layer encapsulation and abstraction, In a way, at the expense of some of the performance. So such a framework might be more suitable for projects within the intranet than for internet-based projects.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.