Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30739
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-06-25 13:04 -0700 |
| References | <nkmft2$th$1@dont-email.me> <db298b28-cea8-468d-a0ea-78ab71b11c01@googlegroups.com> |
| Message-ID | <d6584683-5600-4353-b519-91ee84d3d705@googlegroups.com> (permalink) |
| Subject | Re: Should I use JQuery? |
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
On Saturday, June 25, 2016 at 1:39:01 PM UTC-5, Michael Haufe (TNO) wrote:
> I will say do it without jQuery and see how far you get. If you run into something that feels awkward or difficult, post here in the the group and we can go from there.
>
> JavaScript and Browsers has evolved significantly since you last played with them I suspect
Yuck... drunken replies. Small correction and addition:
JavaScript and browsers HAVE evolved significantly since you last played with them I suspect.
Sadly I still have a number of projects that have jQuery has a dependency, but I've noticed that even with this dependency, only the Ajax related functionality is actually used. For example:
1. $("someSelector") is not necessary since someElement.querySelector("someSelector") and someElement.querySelectorAll("someSelector") exist now in modern browsers:
<https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector>
<https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll>
Often I have two functions available that I use:
var qs = (selector,context) => (context || document).querySelector(selector);
var qsa = (selector,context) => Array.from((context || document).querySelectorAll(selector));
Which lets me do the following:
qs("#someElement").addEventListener(...)
and
qsa(".someElements").map(MyObjectWrapper)
.......
2. Animations: CSS has this now:
<https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations>
3. Ajax
Admittedly I still use this functionality from time to time, but if I spent a day playing with it, a comparable or better solution could be created (though I'd personally use Babel or TypeScript to keep this convenient)
4. probably others, but at the moment I think this enough beating of this dead-horse of a library
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Should I use JQuery? wmgill <wmgill@domain.invalid> - 2016-06-25 13:43 -0400
Re: Should I use JQuery? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-06-25 20:17 +0200
Re: Should I use JQuery? wmgill <webworker1950@gmail.com> - 2016-07-01 12:12 -0400
Re: Should I use JQuery? "Chris M. Thomasson" <invalid@invalid.invalid> - 2016-07-01 13:57 -0700
Re: Should I use JQuery? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 11:38 -0700
Re: Should I use JQuery? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 13:04 -0700
Re: Should I use JQuery? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-26 12:45 +0200
Re: Should I use JQuery? Ram Tobolski <ramtob@gmail.com> - 2016-06-27 10:00 -0700
Re: Should I use JQuery? Ram Tobolski <ramtob@gmail.com> - 2016-06-27 10:21 -0700
Re: Should I use JQuery? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-27 14:42 -0700
Re: Should I use JQuery? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-28 12:03 +0200
Re: Should I use JQuery? wmgill <webworker1950@gmail.com> - 2016-07-01 12:34 -0400
csiph-web