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


Groups > comp.lang.javascript > #32017

Re: What I learned today

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: What I learned today
Date Thu, 29 Dec 2016 04:32:17 +0100
Organization PointedEars Software (PES)
Lines 88
Message-ID <3079828.iIbC2pHGDl@PointedEars.de> (permalink)
References <JavaScript-20161229003655@ram.dialup.fu-berlin.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1482982338 10871 eJwFwYEBACAEBMCVUr1nHMT+I3SHo6LFq9CLwRSyIavD4X1mG4VwDT5KG3blUhMbvgR3+AcXTRC7 (29 Dec 2016 03:32:18 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 29 Dec 2016 03:32:18 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwCAIA7CXtNAi5wiT/09YQtNWh4tyDucR+lj3HrMcgN57WWiNiLBGp1xddddzos1n1Cqc8ILyBzxhFNE=
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
X-NNTP-Posting-Host eJwFwYEBwDAEBMCVBI+Mk+L3H6F3sDjR6YFwEJQ774XClWOSZgd1eSS5qxQZV83aru76xvcHDdERAA==
Cancel-Lock sha1:v7YOS2tbV2/6c287VLM20HBL6ng=
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Xref csiph.com comp.lang.javascript:32017

Show key headers only | View raw


Stefan Ram wrote:

>   So, today, I worked a little bit on my JavaScript course
>   again, and I learned this:

You "learned" some nonsense, again.

>   - The "references" are in ECMAscript to describe what is
>     happening when functions return values that can be
>     assigned to ("references"), but this only is intended
>     for host objects. Otherwise, JavaScript can be described
>     with the concept of bindings (to names) alone.

Nonsense.  It is perfectly OK for a function/method to return a reference to 
a native object, and no names/identifiers are necessary to refer to it.

  (function () {
    "use strict";

    var _foo = "baz";

    return {
      bar: function () { console.log(_foo); }
    };
  }()).bar();

References are _not_ "values that can be assigned to".
 
>   - The term "DHTML" occurred in 1997 together with the
>     generation »4« of Browsers, but it is unknown who
>     coined the term. I was not able to locate when exactly
>     (in 1996 or 1997) the term "DHTML" was first used.
>     NN4 was released with "layers" in June of 1997 and
>     IE4 without layers but with CSS scripting in October
>     of 1997.

<https://github.com/PointedEars/JSX/blob/dbd87d81167ef03773a74791a2640a98a3a8d35f/dom.js#L7-L17>

<http://wayback.archive.org/web/20080505054830/http://msdn.microsoft.com/en-us/library/ms533050.aspx>
 
>   - You already can show a lot of possibilities to script
>     with essentially only two entries from a DOM:
>     »getElementByID« and »innerHTML«,

_“getElementById”_ (case matters) and “innerHTML” are not "entries from a 
DOM"; *the* DOM is a concept and an API.  But they are properties of DOM 
element objects, that which implement the (HTML)Element interface of the W3C 
and WHATWG DOMs.  Of those properties the “innerHTML” property is 
proprietary, i.e. there is no public standard that specifies it or an 
interface with an attribute of the same name.

>     . To show simple forms of event processing, one only needs to use
>     parameterless functions, even arrow functions will suffice. So one
>     does not have to teach a lot of DOM entries and
>     JavaScript features up front before one shows some DOM
>     applications.

Not even wrong.
 
>     (The first version of my course, first taught »pure
>     JavaScript« /and then/ DOM applications. But the
>     participants did not like the long delay before the
>     first DOM applications where shown. The idea for the
>     design of my course was that JavaScript today is
>     independent of browsers, but the typical participant
>     of my courses has never heard of Node.js.)

You have yet to learn that “JavaScript” reasonably can only refer to a 
subset of ECMAScript implementations, namely those that carry the name.
IOW, it is not just one programming language that you are dealing with here, 
not even if you limit yourself to Web browsers.  (You have been told this 
/ad nauseam/ already, but your record strongly indicates that you are too 
full of yourself to reconsider any of your preconceptions when the flaws in 
them are pointed out to you.)

Given your many misconceptions that you so readily display here, I still 
seriously doubt that it is of advantage to take any of your courses (which, 
JFTR, take place either online for free or in a *Volkshochschule* [German 
adult education center], not in any institution of higher education) in the 
first place.  In fact, at this point I must recommend against taking them, 
at least with regard to “JavaScript”.  Students will be much better off 
reading MDN articles, de.comp.lang.javascript, and this newsgroup instead.

-- 
PointedEars, shaking his head
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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


Thread

Re: What I learned today Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-29 04:32 +0100
  Re: What I learned today Maik Koenig <usenetspam@maikkoenig.de> - 2016-12-29 21:20 +0100
    Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-29 21:45 +0100
      Re: What I learned today Maik Koenig <usenetspam@maikkoenig.de> - 2017-01-04 03:52 +0100
        Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 10:48 +0100
          Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-04 09:45 -0800
            Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 19:10 +0100
    Re: What I learned today Andrew Poulos <ap_prog@hotmail.com> - 2016-12-30 19:12 +1100
      Re: What I learned today Gene Wirchenko <genew@telus.net> - 2016-12-30 09:30 -0800
        Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-31 00:39 +0100
          Re: What I learned today David Mark <dmark.cinsoft@gmail.com> - 2016-12-31 07:35 -0800
          Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-02 09:34 -0800
            Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-02 23:41 +0100
              Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-02 23:24 +0000
                Re: What I learned today Andrew Poulos <ap_prog@hotmail.com> - 2017-01-03 15:58 +1100
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-03 11:44 +0100
                Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-04 04:15 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 10:59 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-03 10:29 -0800
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-03 19:50 +0100
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-03 19:32 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-03 21:52 +0100
                Re: What I learned today Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-01-03 21:07 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-03 23:42 +0100
                Re: What I learned today Tim Streater <timstreater@greenbee.net> - 2017-01-03 22:45 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 00:06 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-03 17:00 -0800
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 10:41 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-04 09:51 -0800
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 19:13 +0100
                Re: What I learned today Tim Streater <timstreater@greenbee.net> - 2017-01-04 18:17 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-05 00:30 +0100
                Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-05 01:13 +0000
                Re: What I learned today Andrew Poulos <ap_prog@hotmail.com> - 2017-01-05 13:20 +1100
                Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-05 17:57 +0000
                Multi-line string literals (was: What I learned today) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-05 23:29 +0100
                Re: Multi-line string literals (was: What I learned today) Scott Sauyet <scott@sauyet.com> - 2017-01-05 23:14 +0000
                Re: Multi-line string literals Andrew Poulos <ap_prog@hotmail.com> - 2017-01-06 12:01 +1100
                Re: What I learned today Andrew Poulos <ap_prog@hotmail.com> - 2017-01-05 15:22 +1100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-05 09:06 -0800
                Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-05 18:10 +0000
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-05 20:38 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-05 22:37 +0100
                Re: What I learned today Tim Streater <timstreater@greenbee.net> - 2017-01-05 23:21 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-06 00:29 +0100
                Re: What I learned today Andrew Poulos <ap_prog@hotmail.com> - 2017-01-06 11:59 +1100
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-06 09:04 +0100
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-06 11:19 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-06 13:09 +0100
                Re: What I learned today Tim Streater <timstreater@greenbee.net> - 2017-01-06 12:50 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-06 14:16 +0100
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-06 15:05 +0000
                Re: What I learned today "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-06 16:32 +0100
                Re: What I learned today Tim Streater <timstreater@greenbee.net> - 2017-01-06 16:15 +0000
                Re: What I learned today Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-01-06 17:47 +0100
                Re: What I learned today Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-06 18:07 +0100
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-07 18:38 +0000
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-09 10:33 -0800
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-09 19:57 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-03 16:53 -0800
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 10:36 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-04 09:53 -0800
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 19:17 +0100
                Re: What I learned today Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-01-05 00:57 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-05 09:49 +0100
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-04 16:49 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 18:01 +0100
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-05 20:19 +0000
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-05 22:22 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-03 16:48 -0800
              Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-02 23:24 +0000
                Re: What I learned today David Mark <dmark.cinsoft@gmail.com> - 2017-01-03 00:17 -0800
                Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-03 10:33 +0000
                Re: What I learned today Scott Sauyet <scott@sauyet.com> - 2017-01-04 04:34 +0000
                Re: What I learned today Andrew Poulos <ap_prog@hotmail.com> - 2017-01-04 16:15 +1100
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 11:12 +0100
                Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-04 11:07 +0100
                Re: What I learned today Gene Wirchenko <genew@telus.net> - 2017-01-04 09:58 -0800
      Re: What I learned today John Harris <niam@jghnorth.org.uk.invalid> - 2017-01-01 10:53 +0000
        Re: What I learned today "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-01 12:36 +0100

csiph-web