Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
jQuery Lint
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Haufe (TNO)  
View profile  
 More options Jan 18 2010, 2:09 pm
Newsgroups: comp.lang.javascript
From: "Michael Haufe (\"TNO\")" <t...@thenewobjective.com>
Date: Mon, 18 Jan 2010 11:09:31 -0800 (PST)
Local: Mon, Jan 18 2010 2:09 pm
Subject: jQuery Lint
<flamebait>
http://james.padolsey.com/javascript/jquery-lint/
</flamebait>

A not so subtle hint that something might be wrong with your library?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
S.T.  
View profile  
 More options Jan 18 2010, 3:17 pm
Newsgroups: comp.lang.javascript
From: "S.T." <a...@anon.com>
Date: Mon, 18 Jan 2010 12:17:42 -0800
Local: Mon, Jan 18 2010 3:17 pm
Subject: Re: jQuery Lint
On 1/18/2010 11:09 AM, Michael Haufe ("TNO") wrote:

Looks kind of interesting, particularly for newer programmers or those
not familiar with the jQuery API.

> A not so subtle hint that something might be wrong with your library?

That's quite a leap in logic.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Sauyet  
View profile  
 More options Jan 18 2010, 3:39 pm
Newsgroups: comp.lang.javascript
From: Scott Sauyet <scott.sau...@gmail.com>
Date: Mon, 18 Jan 2010 12:39:32 -0800 (PST)
Local: Mon, Jan 18 2010 3:39 pm
Subject: Re: jQuery Lint
On Jan 18, 2:09 pm, "Michael Haufe (\"TNO\")"

<t...@thenewobjective.com> wrote:
> <flamebait>http://james.padolsey.com/javascript/jquery-lint/
> </flamebait>

Definitely flamebait!  :-)

> A not so subtle hint that something might be wrong with your library?

It seems to be a tool to help new users learn things like that
although this code is legal:

    $("selector").css("color", "red").css("margin", 0);

This would be more efficient:

    $("selector").css({color: "red", margin: 0});

That doesn't indicate anything wrong with the library any more than
any lint program indicates problems with its target environment.

  -- Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Mark  
View profile  
 More options Jan 20 2010, 9:52 am
Newsgroups: comp.lang.javascript
From: David Mark <dmark.cins...@gmail.com>
Date: Wed, 20 Jan 2010 06:52:04 -0800 (PST)
Local: Wed, Jan 20 2010 9:52 am
Subject: Re: jQuery Lint
On Jan 18, 2:09 pm, "Michael Haufe (\"TNO\")"

<t...@thenewobjective.com> wrote:
> <flamebait>http://james.padolsey.com/javascript/jquery-lint/
> </flamebait>

> A not so subtle hint that something might be wrong with your library?

Well, sort of.  It's not so much the Johnny-come-lastly advisor plug-
in, but the fact that it is just another horrible plug-in for an
equally bad pile of JS.  Anyone who would use jQuery enough to want to
write a plug-in is not going to be the best candidate to wtite a
browser scripting "lint."  I can't see it.

The idea (which is sound) is to warn developers when they are doing
something incorrect (or ill-advised).  I haven't looked at the code
for it (and I'm sure I never will).  I find I don't have to do that
anymore as the basic rules always apply.  :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Mark  
View profile  
 More options Jan 20 2010, 9:58 am
Newsgroups: comp.lang.javascript
From: David Mark <dmark.cins...@gmail.com>
Date: Wed, 20 Jan 2010 06:58:24 -0800 (PST)
Local: Wed, Jan 20 2010 9:58 am
Subject: Re: jQuery Lint
On Jan 18, 3:39 pm, Scott Sauyet <scott.sau...@gmail.com> wrote:

Except that neither result will be efficient in any sense of the
word.  Such "optimization" of jQuery code is a fool's errand.  You
dump it and replace it with something better (and faster).  In this
case, something like:

el.style.color = "red";
el.style.margin = '0';

That's smaller, faster, more readable, makes no function calls,
creates no new objects and is impervious to upgrades to jQuery
(typically poison).  And, as we all know, jQuery doesn't work worth a
shit anyway as the "logic" in the script is mostly a diary of confused
browser watchers.  Get the picture?

> That doesn't indicate anything wrong with the library any more than
> any lint program indicates problems with its target environment.

Of course, you don't need a lint to see what is wrong with the
library.  It's as obviously unsuitable as a dissertation written in
crayon.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Sauyet  
View profile  
 More options Jan 20 2010, 12:47 pm
Newsgroups: comp.lang.javascript
From: Scott Sauyet <scott.sau...@gmail.com>
Date: Wed, 20 Jan 2010 09:47:31 -0800 (PST)
Local: Wed, Jan 20 2010 12:47 pm
Subject: Re: jQuery Lint
On Jan 20, 9:58 am, David Mark <dmark.cins...@gmail.com> wrote:

> On Jan 18, 3:39 pm, Scott Sauyet <scott.sau...@gmail.com> wrote:
>> That doesn't indicate anything wrong with the library any more than
>> any lint program indicates problems with its target environment.

> Of course, you don't need a lint to see what is wrong with the
> library.  

As said, the post was definitely flamebait!  :-)

> It's as obviously unsuitable as a dissertation written in crayon.

:-)

I met someone who did that.  Literally.  Or so she claimed.  Of course
her paper was on how to creatively integrate art education into pre-
school and Kindergarten programs.  It was filled with many colorful
illustrations.  Her adviser loved it, and so did most of the
committee.  But she did eventually have to submit a more formal
version.  So much for creativity!

  -- Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Mark  
View profile  
 More options Jan 20 2010, 12:54 pm
Newsgroups: comp.lang.javascript
From: David Mark <dmark.cins...@gmail.com>
Date: Wed, 20 Jan 2010 09:54:41 -0800 (PST)
Local: Wed, Jan 20 2010 12:54 pm
Subject: Re: jQuery Lint
On Jan 20, 12:47 pm, Scott Sauyet <scott.sau...@gmail.com> wrote:

> On Jan 20, 9:58 am, David Mark <dmark.cins...@gmail.com> wrote:

> > On Jan 18, 3:39 pm, Scott Sauyet <scott.sau...@gmail.com> wrote:
> >> That doesn't indicate anything wrong with the library any more than
> >> any lint program indicates problems with its target environment.

> > Of course, you don't need a lint to see what is wrong with the
> > library.

> As said, the post was definitely flamebait!  :-)

Yes, truth in labeling here.

> > It's as obviously unsuitable as a dissertation written in crayon.

> :-)

> I met someone who did that.  Literally.  Or so she claimed.  Of course
> her paper was on how to creatively integrate art education into pre-
> school and Kindergarten programs.  It was filled with many colorful
> illustrations.  Her adviser loved it, and so did most of the
> committee.  But she did eventually have to submit a more formal
> version.  So much for creativity!

It has its place.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »