Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29139
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: apply classes to table rows after table is rendered, how |
| Date | 2016-01-04 17:39 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <3087484.UygJS1DLVP@PointedEars.de> (permalink) |
| References | (1 earlier) <CSS-20160102040520@ram.dialup.fu-berlin.de> <color-table-20160102042948@ram.dialup.fu-berlin.de> <animation-20160102180722@ram.dialup.fu-berlin.de> <j-20160102190250@ram.dialup.fu-berlin.de> <closure-access-20160104170652@ram.dialup.fu-berlin.de> |
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: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
apply classes to table rows after table is rendered, how Mike S <mscir@yahoo.com> - 2016-01-01 18:44 -0800
Re: apply classes to table rows after table is rendered, how Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2016-01-02 11:21 -0200
Re: apply classes to table rows after table is rendered, how Mike S <mscir@yahoo.com> - 2016-01-02 18:30 -0800
Re: apply classes to table rows after table is rendered, how Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-02 22:19 +0100
Re: apply classes to table rows after table is rendered, how Mike S <mscir@yahoo.com> - 2016-01-02 18:29 -0800
Re: apply classes to table rows after table is rendered, how Aleksandro <aleksandro@gmx.com> - 2016-01-04 13:31 -0300
Re: apply classes to table rows after table is rendered, how Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-04 17:39 +0100
csiph-web