<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>x-pose.org &#187; prototype</title> <atom:link href="http://x-pose.org/tag/prototype/feed/" rel="self" type="application/rss+xml" /><link>http://x-pose.org</link> <description>Tech Ramblings.</description> <lastBuildDate>Sat, 05 May 2012 14:08:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>jQuery vs Prototype, a newbies perspective</title><link>http://x-pose.org/2010/04/jquery-vs-prototype-a-newbies-perspective/</link> <comments>http://x-pose.org/2010/04/jquery-vs-prototype-a-newbies-perspective/#comments</comments> <pubDate>Tue, 13 Apr 2010 19:43:27 +0000</pubDate> <dc:creator>brant</dc:creator> <category><![CDATA[jquery]]></category> <category><![CDATA[php]]></category> <category><![CDATA[prototype]]></category><guid isPermaLink="false">http://x-pose.org/?p=154</guid> <description><![CDATA[When I first started to dabble with javascript and ajax, Prototype was the only game in town that was making any headlines. So of course I used prototype with script.aculo.us .  I was able to make some simple stuff, but my coding with Prototype wasn&#8217;t very elegant and it certainly wasn&#8217;t the best way to code things. [...]]]></description> <content:encoded><![CDATA[<p>When I first started to dabble with javascript and ajax, <a href="http://www.prototypejs.org/" target="_blank">Prototype</a> was the only game in town that was making any headlines.  So of course I used prototype with <a href="http://script.aculo.us/" target="_blank">script.aculo.us</a> .  I was able to make some simple stuff, but my coding with Prototype wasn&#8217;t very elegant and it certainly wasn&#8217;t the best way to code things.  But you know what, I&#8217;m a javascript newbie and  it worked!</p><p>Over the last few years it seems like Prototype development has slowed down a lot, while <a href="http://www.jquery.com" target="_blank">jQuery </a>is making huge headway.  Every tutorial I see is using jQuery.  So I FINALLY decided to buy a book and learn it.  They are vastly different to say the least.  My prototype code had an awful lot of onclick=&#8221;" kinda stuff inside the HTML, while jQuery let&#8217;s your code appear more transparent and natural.  I love being able to pass my own variables using html attributes.</p><p>I went through a lot of WTF, why isn&#8217;t this working moments during my first attempts at coding using jQuery techniques.  However, overall I love jQuery.  Now my code is optimized, cleaner, and I feel as though I am not limited in what I want to do.  If I can dream it, I can code it with jQuery.  Not a small feat for someone like myself.</p><p>For example, with Prototype I simply didn&#8217;t know how to show a loading gif when an ajax command was in use.  It sounds simple and a lot of you are probably thinking what an idiot.  I turn to jQuery and my first attempt I find that it&#8217;s so simple to achieve.  Not only that but I can easily manipulate form values, check their validity,and pass them along with no problem at all.</p><p>To learn jQuery I completely rewrote all of my javascript code for <a href="http://www.fantasysp.com" target="_blank">FantasySP</a>.  It took me about 2 LONG weeks, but now I feel as though I can code just about anything I want.  My code is a mere 7kb in size now, compared to 49kb in Prototype.  I am actually making reusable functions now and you can too.</p><p>My only quibble with jQuery is that coding an advanced autocomplete function is a huge pain in the ass.  Prototype let me customize it from the backend (PHP), whereas jQuery forced me to use JSON and adding extra javascript code.</p><p>So for those of you who haven&#8217;t used a framework before, or are still using Prototype, give jQuery a try.  You won&#8217;t be disappointed.</p> ]]></content:encoded> <wfw:commentRss>http://x-pose.org/2010/04/jquery-vs-prototype-a-newbies-perspective/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/8 queries in 0.003 seconds using disk: basic
Object Caching 192/197 objects using disk: basic

Served from: x-pose.org @ 2012-05-18 05:56:51 -->
