2010年5月7日星期五

Sizzle Selector Engine is great

jQuery is far more well-known than the Sizzle Selector Engine.  I have met jQuery first before I found the existence of  Sizzle Selector Engine.  I've used jQuery in my projects for 1 and a half years. However,  in the past, I have repeatedly met name of Sizzle but I've just forgotten or ignored it. 

I regarded myself a late comer in jQuery (this baby is now 4 years old, birthday on: Jan 14, 2006).  In the past few years, I uses the prototype library and I switched to jQuery in 2009 and I started authoring jQuery plugins at May 2009.  

After that, I become interested in the engineering aspect of jQuery library.  Until then, the word "Sizzle" come to my mind again.  

The first version of Sizzle Engine was committed by John Resig on August 25, 2008.  In the jquery blog on Jan 14, 2009,  John Resig has announced the Sizzle Engine as a part in the jQuery.  Sizzle Engine was come from the old version of jQuery and now it becomes the core part in jQuery.  Sizzle is responsible for query of jQuery in the syntax of CSS3.  On the other hand, we can view jQuery as a wrapper library for Sizzle Engine since jQuery version 1.3. 

If you are learning jQuery, you'd better familiar the notation used in Sizzle Engine.  And, if you are interested in writing your owner library, the website of Sizzle engine provides a lot of information and, you may find yourself interested in writing a wrapper library for Sizzle, too. (Actually, I have an idea of a new wrapper library in my mind).

If you are studying or trying to write a jquery plugin, I recommend you to have a look at the Sizzle Engine and you'll know more about the philosophy behind jQuery.  Just put a stop here, happy programming!!!

Cloudgen Wong


0 意見:

張貼意見