David Mark's Javascript Tip of the Day

Discussion in 'Javascript' started by David Mark, Nov 7, 2011.

  1. David Mark

    David Mark Guest

    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, Nov 7, 2011
    #1
    1. Advertising

  2. David Mark

    RobG Guest

    On Nov 7, 10:20 pm, David Mark <> 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
    RobG, Nov 8, 2011
    #2
    1. Advertising

  3. 11/8/2011 2:26 AM, RobG wrote:

    > On Nov 7, 10:20 pm, David Mark <> 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/
    Jukka K. Korpela, Nov 8, 2011
    #3
  4. David Mark

    David Mark Guest

    On Nov 7, 7:26 pm, RobG <> wrote:
    > On Nov 7, 10:20 pm, David Mark <> 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.
    David Mark, Nov 8, 2011
    #4
  5. David Mark

    David Mark Guest

    On Nov 8, 2:02 am, "Jukka K. Korpela" <> wrote:
    > 11/8/2011 2:26 AM, RobG wrote:
    >
    >
    >
    > > On Nov 7, 10:20 pm, David Mark <>  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.
    David Mark, Nov 8, 2011
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Mark

    David Mark's Javascript Tip of the Day

    David Mark, Nov 5, 2011, in forum: Javascript
    Replies:
    5
    Views:
    782
    David Mark
    Nov 7, 2011
  2. David Mark
    Replies:
    16
    Views:
    893
    Scott Sauyet
    Nov 11, 2011
  3. David Mark
    Replies:
    58
    Views:
    1,388
    David Mark
    Dec 6, 2011
  4. David Mark
    Replies:
    6
    Views:
    734
    Dr J R Stockton
    Nov 16, 2011
  5. David Mark
    Replies:
    1
    Views:
    745
    David Mark
    Dec 7, 2011
Loading...

Share This Page