How to select a Javascript Framework)

Source: Internet
Author: User

The rise of Ajax brings new vigor to Javascript, and a large number of javascript frameworks emerge one after another. Some frameworks are used to summarize and refine developers' project experience, there are also some frameworks for commercial companies, both open-source and commercial release. These frame frames can greatly accelerate the development of Ajax projects, but they also face different learning curves and architecture scalability. Choosing a Javascript framework becomes a headache for developers and architects. If you are facing such a problem, I hope the following suggestions will help you in choosing a javascript framework.

What are your project requirements?
First, ask yourself what this project is, what the specific requirements are, whether it is a common type of website or an online web application, and whether you need to handle a large number of keyboard and mouse events, whether to provide users with all kinds of advanced ajax features, or simply implement a simple asynchronous page refresh and some simple dom operations. If it is the latter, you can select a relatively simple javascript framework to encapsulate basic xmlhttprequest operations and dom operations.

Browser support
Different frameworks are compatible with different browsers, especially some advanced javascript frameworks, which are not supported by earlier browsers. Some frameworks only support ie and firefox, its browsers such as opera and safari are not supported. Therefore, the target users of the system should be taken into account in the framework selection. If all target users only use ie6.0 and later browsers, there will be more room for the Framework selection.

Is there a core development team behind the framework?
Many frameworks are developed by individuals during business hours and may be updated at any time. If there is a team behind them, code updates can be ensured to a certain extent, timely response to bugs and some problems, while ensuring code quality.

Framework Maturity
If a new framework has just been released, there are usually not many people using it. If you adopt it rashly, you may encounter problems during use, it may be difficult to find someone who can help you solve the problem or find information online. Therefore, we should also consider this.

Release and update frequency of the framework
A framework has a high frequency of release and update, indicating that new functions are constantly being added or bugs are fixed quickly. On the contrary, a framework cannot be released in half a year, it can basically be said that this framework has not been valued by developers and is difficult to get new development.

Document friendliness
A framework, especially a relatively complex framework, has a relatively high learning curve if there are insufficient and friendly documents, users often need to read code and other external articles to learn how to use and solve some problems. Therefore, the document is also an important factor.

Is there an active community?
Behind some successful open-source frameworks, there is often a community to support, where you can share your experience and help each other solve problems encountered during use. If you ask for help in such communities, you will soon be able to get help from others. Such a framework will soon develop even if it is not very mature at the beginning.

Framework scalability
In the actual project process, it is often difficult for a specific framework to directly meet all your needs. This requires you to do some customization and expansion work, if a framework does not have good scalability, you may have to use another new framework later in the project to meet a specific requirement, which greatly increases the project cost. Therefore, choosing a framework with good scalability, such as supporting plugin and other mechanisms will be of great help to your system expansion in the future.

Performance and Network Environment
Different systems may have different performance and functions. For example, an Internet-based project may require more accurate performance protection, many advanced javascript frameworks are often unsatisfactory in terms of performance. Part of the reason is that too many functions are encapsulated, resulting in a very large js file. In the Internet environment, downloading this js file will take a lot of time, and in order to guarantee the scalability of the Framework, it often requires multi-layer encapsulation and abstraction, to some extent, it is at the cost of some performance. Therefore, such a framework may be more suitable for intranet projects than Internet-based projects.

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.