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 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> References: Reply-To: Thomas 'PointedEars' Lahn 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+&. 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. > - 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: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.