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


Groups > comp.lang.javascript > #29617

Re: Can someone tell if this is javascript or else (jquery)?

From Stefan Weiss <krewecherl@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Can someone tell if this is javascript or else (jquery)?
Date 2016-02-16 11:45 +0100
Organization albasani.net
Message-ID <n9uukm$fbb$1@news.albasani.net> (permalink)
References <89e24913-7873-405c-9b54-9c35331c4d15@googlegroups.com> <ad4a7459-1e9a-4064-bd48-315bd4bfeb3b@googlegroups.com> <n9u4ha$f23$1@news.albasani.net> <1998996.AYlFq7fMdc@PointedEars.de>

Show all headers | View raw


On 02/16/2016 08:36, Thomas 'PointedEars' Lahn wrote:
> Stefan Weiss wrote:
>> Still, if it's a plain JS library (like jQuery), you can do everything
>> it does with plain JS yourself.
> 
> No, because "JS" [...] does not include APIs like the DOM that are
> necessary to achieve this.

Neither does jQuery. The environment either has access to the DOM, or it
doesn't. In either case, everything jQuery does can be done without it.
Besides, we were talking about browser-based components, so the
availability of the DOM was implied.

> The problem with jQuery and the likes is not that you can live without them, 
> but that in their design, convenience has been given greater priority than 
> runtime and memory efficiency and backwards compatibility (marketing calls 
> this problem “write less, do more”), and that as APIs converge and new CSS 
> features emerge, an increasing number of features more conveniently provided 
> by jQuery and the likes becomes unnecessary to use to achieve something.  
> For example, simple transitions are better written in CSS directly nowadays.

I pretty much agree with this.

> The problem with jQuery and the likes is that you learn to do things a 
> certain way (with CSS-like selectors) which will make it harder for you to 
> even consider alternatives when they are better than the jQuery-ish way.

And with this, too, although I wouldn't throw out the baby with the
bathwater: query selectors are an immensely useful feature, whether or
not jQuery is used. Native support for them is good enough nowadays for
most use cases.

- stefan

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-14 14:49 -0800
  Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-15 00:05 +0100
    Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-14 15:26 -0800
      Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-15 01:22 +0100
        Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-15 20:00 +0100
      Re: Can someone tell if this is javascript or else (jquery)? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-15 05:41 -0800
  Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-15 16:59 -0800
    Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 04:20 +0100
      Re: Can someone tell if this is javascript or else (jquery)? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-15 22:18 -0800
      Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-16 08:36 +0100
        Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 11:45 +0100
          Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-16 20:23 +0100
            Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-16 20:24 +0000
              Re: Can someone tell if this is javascript or else (jquery)? Andrew Poulos <ap_prog@hotmail.com> - 2016-02-17 07:31 +1100
                Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-17 15:57 +0100
                Re: Can someone tell if this is javascript or else (jquery)? Tim Streater <timstreater@greenbee.net> - 2016-02-17 15:09 +0000
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-17 16:09 +0000
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-17 15:45 +0000
                Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-18 00:09 +0100
                Re: Can someone tell if this is javascript or else (jquery)? Andrew Poulos <ap_prog@hotmail.com> - 2016-02-18 19:29 +1100
                Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-18 23:36 +0100
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-19 10:51 +0000
                Re: Can someone tell if this is javascript or else (jquery)? Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-19 09:01 -0800
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-18 15:10 +0000
            Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 23:56 +0100
  Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-17 04:46 -0800

csiph-web