What does jRaiser mean? JRaiser birthnotes

Source: Internet
Author: User

Writing a Javascript framework by yourself is a task that is decided by the last semester. With the rise of Ajax, websites are increasingly demanding Javascript, and Javascript itself has many defects and deficiencies, which need to be improved through the framework. At that time, there were already many such frameworks, such as prototype, jQuery, and YUI. Although it is effort-saving to directly use these ready-made frameworks, I did not do this because: First, you need to learn the usage of these frameworks; second, once a problem occurs, it is very difficult to find the cause. After all, I am not the author of these frameworks. Third, I will write a new framework, and I will learn more and the cost will not be high.

At that time, I was a bit familiar with Javascript and needed some code reference. I'm glad a friend introduced me to myJsFrame, which is small and dirty. The original jRaiser version was compiled in imitation of myJsFrame, and some prototype built-in class extensions were added, such as the famous function. prototype. bind.

Later, I read the book "proficient in Javascript", written by John Resig, the father of jQuery. He mentioned the Css Query written by another master, Dean Edwards. This framework provides a selector engine that supports CSS1-3. I have studied this engine in depth and revised my own engine based on its implementation principles. Css Query uses a lot of regular expressions, so I started to explore the regular expressions.

JQuery is becoming more and more popular. I also began to learn from the code of this framework. What is most helpful to me is its selector engine Sizzle. I decided to perform the Third transformation of the Selector engine I wrote so that it can support CSS3 and gave it the name SelDOM (use Selector to get DOM element ). Although I am confident that the code I write is not efficient, the efficiency of SelDOM has been greatly improved after referring to some Sizzle practices (such as repeated elements and traversing sub-elements. JQuery also has a lot to learn from. For example, when adding events, it can point this to an element in any browser, the code I wrote only calls attachEvent and addEventListener for different browsers.

After the transformation with reference to jQuery code, this framework has been quite complete. I named it Jess, short for the Javascript Essential Toolkit. Later, I found that there was already a famous Java project called Jess, so I changed another name # FormatStrongID_1 #. This is a special Gundam name. After Gundam 00 is combined with the external component 0 Raiser, the performance is improved several times. We also hope that jRaiser can improve Javascript development efficiency several times.

Final Project address attached to Google Code: http://code.google.com/p/jraiser/

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.