Sunday, March 14, 2010

First usage of Prototype

Since last week I tried to use prototype for my project, compared to jQuery which makes heavy use of my css knowledge, Prototype is doing javascript in an way. There are quite a few utilities in prototype making js programming like java programming(...I am still newbie to js programming, most of the time I just use java for my work).

So my feeling about prototype is that the author makes a framework that very suitable for OO programmers. If you want to treat a String as an object just like what we see in java, Prototype really does that and gave me various String utilities, making String var in js behave like a java object. I like it.

For jQuery, I am not familiar with it yet. But I guess it feels like a css-selector in js:) The easy way of selecting elements in jQuery really benefits those who have done lots of html/css work. Those are just my superficial opinions. I will investigate into them further in the following weeks and update this post then.

No comments:

Post a Comment