What is Meteor.js?

Source: Internet
Author: User

Meteor's official website (METEOR) introduces this framework:

Meteor is an open-source platform for building top-quality Web Apps in a fraction of the time, whether your ' re an exp ERT developer or just getting started.

top-quality Web AppsWe put down not the table,Fraction of the timeThe formulation is very novel, it seems that the goal of this framework is to liberate the procedural apes, less time to do more. Although the specific evolutionary path I do not know, but from a variety of clues on the network, meteor absorbed the Google Wave, asana and other platforms behind the development of the essence of the tool, gradually evolved the current version. Meteor's behind-the-scenes team was pretty tough: most of them graduated from MIT, a successful entrepreneur and a first-class engineer, and one of the developers was the author of Artifact Etherpad.

Meteor, what exactly is NB's place?

First, meteor architecture and Nodejs. This makesOne LanguageAnd can rely on Nodejs's powerful class libraries such as Http://socket.io built-inRealtimeDate on The Wireand other characteristics.

On the basis of a language, meteor unifies the server-side and the client's data access, proposesDatabase Everywhere, a set of DB APIs greatly reduces the development burden and does not need to be transformed by the server data JSON client data (think about your Django or Rails app, how much effort does it take?). )。

To achieve the best user experience for your app, Meteor also providesLatency Compensation, the client updates the data immediately to the UI, if the update is reject by the server, and then rollback. In most cases, users will get an excellent experience like a local database.

The most amazing thing about Meteor is itsFull Stack reactivity。 For a detailed introduction to reactivity programming, please refer to reactivity programming, which does not expand here. In short, when the data changes, all the places that depend on that data automatically change accordingly.

Students who have used backbone know that when the model changes, we need to register the corresponding event, explicitly update the corresponding DOM, if the data in the page is rendered in many places, then each corresponding DOM needs to be updated.

Ember is a big step in backbone's mind, with the built-in data binding API, which enables the two-way binding of the DOM, and the program ape no longer has to think about DOM updates. However, crappy API calls (all access to binding data need to be made through getter and setter, you know) and the ubiquitous script garbage in the DOM make Ember neither minimalist nor elegant.
And Meteor is another strange, through the reactivity context and dependency cleverly support the reactivity (according to the author said the core code on dozens of lines), users can hardly feel the changes in the code.

Meteor another very sweet point is the zero deployment. A little bit of a headache for developing web apps is packaging and deployment. For example, turning less to css,coffee into JavaScript, then confusing, compressing, while some automated tools can simplify this part of the work, there are also some configuration and scripting work. In the development environment, Meteor will automatically load the js/css for you, if you use Coffee/less (SASS), as long as add the corresponding smart Package,meteor will automatically help you handle, after the completion of the deployment, only need to run meteor Bundle, the system will automatically package the relevant resources, as long as the target system has the corresponding version of Nodejs,meteor and MongoDB, you can run a standard version of production.

The following is the meteor official online introduction, when you really use meteor, you will find really not bragging.

SEVEN Principles of METEOR

    1. Data on the wire. Don ' t send HTML over the network. Send data and let the client decide what to render it.

    2. One Language. Write both the client and the server parts of your interface in JavaScript.

    3. Database Everywhere. Use the same transparent API for access your database from the client or the server.

    4. Latency compensation. On the client, use prefetching and model simulation-to-make it look like you had a zero-latency connection to the Databas E.

    5. Full Stack reactivity. Make realtime the default. All layers, from the database to the template, should make an Event-driven interface available.

    6. Embrace the Ecosystem. Meteor is open source and integrates, rather than replaces, existing open source tools and frameworks. Simplicity Equals Productivity. The best-of-the-something seem simple are to has it actually be simple. Accomplish this through clean, classically beautiful APIs.


The above content to self-blog article: Why is Meteor

[Supplemental] What is the next generation of Web apps?
Let's look at the development of several generations of computer systems. Web/cloud era is not the repeat of the Mainframe/cs era of the road? So, do we have reason to believe that Meteor is doing this in the right direction?

What is Meteor.js?

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.