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 20:23:29 +0100 Organization: PointedEars Software (PES) Lines: 47 Message-ID: <1927932.lV8zrDp9mk@PointedEars.de> References: <89e24913-7873-405c-9b54-9c35331c4d15@googlegroups.com> <1998996.AYlFq7fMdc@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1455650610 417 eJwFwYkBwCAIA8CVNCQ847Qo+4/gncy3d9Dl1Ggy0E2/AnWqb2sPjQtRiZUL+CIN+KPqRPYDBWMP9A== (16 Feb 2016 19:23:30 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 16 Feb 2016 19:23:30 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBwDAIA0BL5UkAOZQO/xJ2B6Nwwgk6FuvPxp9cTfWU0IpYe1VysN8gt6132dNUO7CSukh+wFSFyA8/2xS7 Cancel-Lock: sha1:jb7V6rt162UBvMFCo8yJqlui3BQ= X-NNTP-Posting-Host: eJwFwYEBADAEA7CXGMXeGfr/CUtgodHpgXAQtDPE7vLarNBbDpQJ6aRXvQef3FC1zVt+PixfERM= Xref: csiph.com comp.lang.javascript:29618 Stefan Weiss wrote: > 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. You are missing the point. Saying that you can do the same that jQuery does with “plain JS” implies that you can do *those* things with “plain JS”. But, as a matter of fact you cannot, because “plain JS” actually does not include using APIs like the DOM that jQuery uses a lot. It is important to make that difference in this newsgroup at least, and to avoid spreading further, by such imprecise (underinformed, or simply ignorant) wording, the common misconception to beginners that everything they do in browsers is “(plain) JS” (in its worst form, “javascript”¹) where “JS” (or “javascript”) would, by *misdefinition*, have to include everything scriptable that browsers would provide. Therefore, a more precise wording that could be recommended, if only in parts: You have to use additional *language-independent* API( implementation)s with those scripting languages to achieve what you can do with jQuery and similar libraries, and you can use those language-independent APIs either directly, or through libraries that wrap that API (implementation) access (mostly) for developer convenience (nowadays). See also the introduction to the ECMAScript Support Matrix (URI in signature) for a wording into which more free time was invested, that might be easier to understand. _______ ¹ hopefully not for much longer to be found in the “FAQ for comp.lang.javascript” -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.