Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8100 > unrolled thread

David Mark's Javascript Tip of the Day

Started byDavid Mark <dmark.cinsoft@gmail.com>
First post2011-11-07 04:20 -0800
Last post2011-11-08 10:47 -0800
Articles 5 — 3 participants

Back to article view | Back to comp.lang.javascript


Contents

  David Mark's Javascript Tip of the Day David Mark <dmark.cinsoft@gmail.com> - 2011-11-07 04:20 -0800
    Re: David Mark's Javascript Tip of the Day RobG <rgqld@iinet.net.au> - 2011-11-07 16:26 -0800
      Re: David Mark's Javascript Tip of the Day "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-08 09:02 +0200
        Re: David Mark's Javascript Tip of the Day David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 10:52 -0800
      Re: David Mark's Javascript Tip of the Day David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 10:47 -0800

#8100 — David Mark's Javascript Tip of the Day

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2011-11-07 04:20 -0800
SubjectDavid Mark's Javascript Tip of the Day
Message-ID<36fd7a7b-a7be-4bd2-abce-e931a3c6ad02@s32g2000prj.googlegroups.com>
David Mark's Javascript Tip of the Day

Volume 1 - Tip 3A

For God's sake, don't use jQuery under any circumstances.

http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2

Not fast, not concise, just creates a whole lot of confusion for no
good reason. Google combinations of: "jQuery", "attr", "prop",
"removeAttr", and now "removeProp" (!) and find lots of similar tales.
The "attr" variety is old news, the others were recently added to try
to fix the problems it created.

The client above just needed code like this:-

el.readOnly = b; // That's all

...instead they spent what appears to be hours slogging through
jQuery's muck.

The common recurring theme is that nobody associated with the project
seems to understand what these functions do or how to design
alternatives that make sense. Meanwhile, entire books and blogs about
jQuery are "right" one day and "wrong" the next as jQuery fiddles
endlessly with their core DOM code. Virtually every jQuery example
ever written makes at least one call to "attr".

http://www.cinsoft.net/
http://twitter.com/cinsoft
http://jsperf.com/browse/david-mark

[toc] | [next] | [standalone]


#8117

FromRobG <rgqld@iinet.net.au>
Date2011-11-07 16:26 -0800
Message-ID<553c6cc0-f5b8-413d-9386-f6344a355012@j36g2000prh.googlegroups.com>
In reply to#8100
On Nov 7, 10:20 pm, David Mark <dmark.cins...@gmail.com> wrote:
> David Mark's Javascript Tip of the Day
>
> Volume 1 - Tip 3A
>
> For God's sake, don't use jQuery under any circumstances.
>
> http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2

It is helpful to include some relevant quotes from such links as they
may not last as long as this post and some readers are blocked from
accessing "social media" sites because their boss/supervisor/spouse/
whatever fears they'll spend their day socialising.


--
Rob

[toc] | [prev] | [next] | [standalone]


#8121

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2011-11-08 09:02 +0200
Message-ID<j9ak6u$66p$1@dont-email.me>
In reply to#8117
11/8/2011 2:26 AM, RobG wrote:

> On Nov 7, 10:20 pm, David Mark <dmark.cins...@gmail.com>  wrote:
[...]
>> http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2
>
> It is helpful to include some relevant quotes from such links

I thought that what followed the URL in David Mark's post _was_ a 
quotation or paraphrase of its key contents. I still think it was meant 
to be a paraphrase, but this is not quite clear. In any case, when 
mentioning a URL, it is usually a good idea to quote its heading or 
title, such as
"A Bug in JQuery Latest Release(v1.6.2)"
It's not a good heading, but it's what the page has. Quite often, when a 
URL has been killed (by a reorganization of a site, or by moving a 
resource to another server), googling for the exact title helps to find 
the new address of the resource fast.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#8142

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2011-11-08 10:52 -0800
Message-ID<2bd21083-5678-46f5-9db1-745235165fe2@k26g2000yqd.googlegroups.com>
In reply to#8121
On Nov 8, 2:02 am, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> 11/8/2011 2:26 AM, RobG wrote:
>
>
>
> > On Nov 7, 10:20 pm, David Mark <dmark.cins...@gmail.com>  wrote:
> [...]
> >>http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2
>
> > It is helpful to include some relevant quotes from such links
>
> I thought that what followed the URL in David Mark's post _was_ a
> quotation or paraphrase of its key contents.

Yes.  It was a high altitude view, but more of the general
implications than the specific outcome.  In short, there's no way that
all of those jQuery users out there having problems with attr/prop/
etc. are saving time or learning anything useful.

[toc] | [prev] | [next] | [standalone]


#8141

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2011-11-08 10:47 -0800
Message-ID<1886dc94-990b-404e-b4c5-40ed9a99a005@n38g2000yqm.googlegroups.com>
In reply to#8117
On Nov 7, 7:26 pm, RobG <rg...@iinet.net.au> wrote:
> On Nov 7, 10:20 pm, David Mark <dmark.cins...@gmail.com> wrote:
>
> > David Mark's Javascript Tip of the Day
>
> > Volume 1 - Tip 3A
>
> > For God's sake, don't use jQuery under any circumstances.
>
> >http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2
>
> It is helpful to include some relevant quotes from such links as they
> may not last as long as this post and some readers are blocked from
> accessing "social media" sites because their boss/supervisor/spouse/
> whatever fears they'll spend their day socialising.

Yes, but not a lot of salient quotes there though. Even though the
author is clearly confused about... well, almost everything, that
wasn't really my point.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web