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: apply classes to table rows after table is rendered, how Date: Mon, 04 Jan 2016 17:39:04 +0100 Organization: PointedEars Software (PES) Lines: 42 Message-ID: <3087484.UygJS1DLVP@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 1451925546 26801 eJwFwYEBwCAIA7CXcEDVcyzQ/09Yko6F2oFEpFLfKfrLeHdsj1oGJ5tnuhS2Wrg0IxjZUf0DODUSRQ== (4 Jan 2016 16:39:06 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 4 Jan 2016 16:39:06 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNx8EBwCAIA8CVkJBIx6Ei+4/Q3u8ILZ0dooLD6Z4c+J8XDDccVgK6WL3E9pMZntd13XaXCl2wkW2mPfYBOkkUag== Cancel-Lock: sha1:meE+Lms5JCzJb58+rompM2cYPC0= X-NNTP-Posting-Host: eJwFwQcBACAMAzBLO91Bzg74l0Bi6uwTcHPYswfMxp5E9VYiclTNBlx027UXISIXTHpKnD4c5BCT Xref: csiph.com comp.lang.javascript:29139 Stefan Ram wrote: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >>It possibly would be even better to define >>»animate« to be a closure around »j«. Then >>»j« would be totally private to »animate«. >>(I don't know whether this will also make >>accesses to »j« faster.) > > In the meantime, by pure coincidence, I read in a book that > today property accesses usually are faster than accesses to > enclosed variables. The same author also wrote that names of > »private« properties sometimes begin with an underscore. You have been told this before: You need to *cite* your references, and to *quote* the substantiating statements. So, which book, by whom, what do “usually” and “enclosed variable” mean, which ECMAScript implementation(s) is/are being referred to, and what reason is being given? Without that, the information you give above is worthless. Put rather explicitly: “Opinions are like assholes, everybody’s got one.” – Larry Flynt (in: “The People vs. Larry Flynt”, Sony Pictures, 1996) Since this field is ripe with people overconfident in their technical understanding due to early success (JavaScript intentionally looks simple), there are more bad books than good books on the topic, which is why the FAQs so far contain no explicit recommendations by the regulars of this newsgroup. | > If you get a bunch of authors […] that state the same "best practices" | > in any programming language, then you can bet who is wrong or right... | Not with javascript. Nonsense propagates like wildfire in this field. | -- Richard Cornford, comp.lang.javascript, 2011-11-14 As a result, relying on books, in particular relying on only one book or only one author on the topic, is a recipe for disaster. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.