Message from discussion
Prototype + lowpro vs. JQuery
Received: by 10.35.99.14 with SMTP id b14mr2833375pym.4.1201317743524;
Fri, 25 Jan 2008 19:22:23 -0800 (PST)
Return-Path: <d...@danwebb.net>
Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.249])
by mx.google.com with ESMTP id z53si3329724pyg.1.2008.01.25.19.22.23;
Fri, 25 Jan 2008 19:22:23 -0800 (PST)
Received-SPF: neutral (google.com: 64.233.178.249 is neither permitted nor denied by best guess record for domain of d...@danwebb.net) client-ip=64.233.178.249;
Authentication-Results: mx.google.com; spf=neutral (google.com: 64.233.178.249 is neither permitted nor denied by best guess record for domain of d...@danwebb.net) smtp.mail=...@danwebb.net
Received: by hs-out-2122.google.com with SMTP id z77so1000641hsz.14
for <low-pro@googlegroups.com>; Fri, 25 Jan 2008 19:22:23 -0800 (PST)
Received: by 10.150.152.17 with SMTP id z17mr1236229ybd.37.1201317743167;
Fri, 25 Jan 2008 19:22:23 -0800 (PST)
Received: by 10.150.181.7 with HTTP; Fri, 25 Jan 2008 19:22:23 -0800 (PST)
Message-ID: <5b3e279f0801251922g20060bfbxbf536db9cb41d802@mail.gmail.com>
Date: Sat, 26 Jan 2008 03:22:23 +0000
From: "Dan Webb" <d...@danwebb.net>
To: low-pro@googlegroups.com
Subject: Re: Prototype + lowpro vs. JQuery
In-Reply-To: <f58d8dcb0801211358w51dadccdgc838fb1a6abd11e6@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <102c1a64-c792-46f5-95d0-202ce9fdbe3c@j78g2000hsd.googlegroups.com>
<bb99361a0801211126k2df88416h68021d8a797c3f0b@mail.gmail.com>
<f58d8dcb0801211358w51dadccdgc838fb1a6abd11e6@mail.gmail.com>
On 1/21/08, Matt Aimonetti <mattaimone...@gmail.com> wrote:
> It would be awesome to port the low pro syntax to JQuery. Now the thing is,
> low pro is just a tiny abstraction layer above proto, in theory we should be
> able to port the same layer to JQuery.
I've considered doing this myself. Ive used both jquery and prototype
heavily in the past. The reason I like prototype over jquery is that
prototype offers more general programming tools where as jquery is
just about dealing with the DOM. Secondarily, in my experience, the
chaining idiom in jquery tempts people into writing some pretty
unreadable code.
However, jquery is really compact, very well documented and does its
job well so I can see the attraction so 10 minutes spend writing
behaviours on top of it would be well spent. Ill see what I can come
up with. Something like:
$('.date').attach(DatePicker, { opt1: 34 });
Would do the job, I can even bring over the inheritance stuff...and
the DOM builder. I'll do it tomorrow morning if I have time.
Cheers for bringing this up...
--
Dan Webb
http://www.danwebb.net
aim: danwrong123
skype: danwrong