Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Can someone tell if this is javascript or else (jquery)? Date: Tue, 16 Feb 2016 08:36:56 +0100 Organization: PointedEars Software (PES) Lines: 34 Message-ID: <1998996.AYlFq7fMdc@PointedEars.de> References: <89e24913-7873-405c-9b54-9c35331c4d15@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1455608218 6065 eJwVycENwDAIBMGWcA4OKCeG0H8JdrSfkdbAxXKlUW1uzT3PFxfu6l0p+GcKX+wSSsNXTCZiGjwXYBCQ (16 Feb 2016 07:36:58 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 16 Feb 2016 07:36:58 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNy7EBACEIBLCV4OUQxoFT9h/hrVIFy9W5zeGGwaTfXSIkQgEOZY7lXErDouSMnvTy0rXwXjDj8UWfTlr/YukV/A== Cancel-Lock: sha1:uWdiX09XAKcHGJVWX2AbGvXyfdM= X-NNTP-Posting-Host: eJwFwYkNwDAIBLCVQPcA4ySp2H+E2oLTr2iZWu0bSYOG0L43kQefoxHVvbVMbhwgBywMf/XLD2E= Xref: csiph.com comp.lang.javascript:29616 Stefan Weiss wrote: > As for what jQuery is best for... most of the regulars in this group are > heavily biased against jQuery, so you're unlikely to get a straight > answer here :) > Still, if it's a plain JS library (like jQuery), you can do everything > it does with plain JS yourself. No, because "JS" (here short for the proper term “ECMAScript implementations”) does not include APIs like the DOM that are necessary to achieve this. Those are provided by the respective host environment and can be used with "JS" (and other programming languages) either directly or through libraries like jQuery that wrap this accessing capability for developer convenience. 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. 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. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.