Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

David Mark's Javascript Tip of the Day

58 views
Skip to first unread message

David Mark

unread,
Nov 5, 2011, 7:12:53 AM11/5/11
to
Volume #1 - Tip #1

Always read David Mark's Javascript Tip of the Day. ;)


David Mark's Javascript Tip of the Day is posted manually by David
Mark.

Copyright (c) 2011 David Mark's Javascript Tip of the Day. All Rights
Reserved.

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

Luuk

unread,
Nov 5, 2011, 8:13:44 AM11/5/11
to
Volume #1 Tip #2:
If tip 1 does not apply, simply try searching the internet...

--
Luuk

Denis McMahon

unread,
Nov 5, 2011, 10:50:54 AM11/5/11
to
On Sat, 05 Nov 2011 04:12:53 -0700, David Mark wrote:

> Volume #1 - Tip #1
>
> Ignore all postings by David Mark!

Your tip was broke, I fixed it for you.

Rgds

Denis McMahon

Luuk

unread,
Nov 5, 2011, 11:28:17 AM11/5/11
to
Thanks ;)

--
Luuk

David Mark

unread,
Nov 7, 2011, 7:20:38 AM11/7/11
to
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

David Mark

unread,
Nov 7, 2011, 4:17:20 PM11/7/11
to
On Nov 5, 9:50 am, Denis McMahon <denismfmcma...@gmail.com> wrote:
> On Sat, 05 Nov 2011 04:12:53 -0700, David Mark wrote:
> > Volume #1 - Tip #1
>
> > Ignore all postings by David Mark!
>
> Your tip was broke, I fixed it for you.
>

Now fix your grammar checker. I think it's "broke" too. :)

David Mark

unread,
Nov 7, 2011, 4:17:36 PM11/7/11
to
Yes "Luuk", I suggest Googling "David Mark" + "Javascript". ;)

RobG

unread,
Nov 7, 2011, 7:26:44 PM11/7/11
to
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

Jukka K. Korpela

unread,
Nov 8, 2011, 2:02:55 AM11/8/11
to
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/

David Mark

unread,
Nov 8, 2011, 1:47:27 PM11/8/11
to
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.

David Mark

unread,
Nov 8, 2011, 1:52:43 PM11/8/11
to
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.
0 new messages