Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34357
| Path | csiph.com!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.214.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Dictionary-like objects |
| Date | Wed, 15 Nov 2017 02:55:50 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 142 |
| Message-ID | <3071898.QJadu78ljV@PointedEars.de> (permalink) |
| References | <d68354d4-3603-4201-9c12-a51977c9cf9b@googlegroups.com> <ou8vaq$1l44$1@gioia.aioe.org> <4335673.31r3eYUQgx@PointedEars.de> <ouavs3$199k$1@gioia.aioe.org> <2901334.aeNJFYEL58@PointedEars.de> <oub380$1do6$1@gioia.aioe.org> <1735928.PYKUYFuaPT@PointedEars.de> <ouck80$50s$4@gioia.aioe.org> <19625708.EfDdHjke4D@PointedEars.de> <oud672$r4k$1@gioia.aioe.org> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| Injection-Info | gwaiyur.mb-net.net; posting-host="214.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.226.214"; logging-data="22873"; mail-complaints-to="abuse@open-news-network.org" |
| User-Agent | KNode/4.14.2 |
| X-User-ID | U2FsdGVkX185cEgNxdtCUsnbrtrj28SadCgjmW4/xIoVBqtfVT36MQ== |
| Cancel-Lock | sha1:3Wm3jzbqQyk4IEoKnCA6n1qTo1Q= |
| 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 |
| 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:34357 |
Show key headers only | View raw
Joao Rodrigues wrote: > Thomas 'PointedEars' Lahn wrote: >> Also, why do you make up things and pretend that they are true? > > You do that *all the time* - only you don't recognize the fact. > >> GitHub is _not_ a version control system (Git, which GitHub uses, is). > > Don't say. > >> And your claim that I would not use such is so *obviously* false > >> – read my sigs. > > FYI, no one cares about them. How could you possibly know? If you would care about them, you would not need to make up spurious claims about me. My sig has been saying for a long time that I am using SVN, and more recently that I am providing Git repositories hosted on GitHub, too. From that it is evident that I am contributing to free software projects of others as well. And, not to put too fine a point on it, it also says that I am the maintainer of the FAQ for comp.lang.javascript and the author of the ECMAScript Support Matrix. You appear to have no clue whom you are talking about (or to). >>> Anyway, putting console.log() in source code is insane and unnecessary, >>> given all modern browsers provide "DevTools" way more capable to debug >>> code nowadays. >> You are dead wrong. > > Maybe a little wrong, not dead wrong. Wrong again. >> Sometimes it is still necessary to use console.log() for debugging >> because the interaction with the built-in debugger causes unwanted >> results. > > I challenge you to give an example of that. Debugging keyboard and mouse events. >> Also, sometimes it is useful to have console.log() & friends in *some* >> places even if one is not actually debugging the code. For example, if >> you *want* to generate *messages* that only *developers* need to see. > > In debug code, yes. However, using console.log() in production code is > pure nonsense. It is not. People do it all the time, for the *right* reasons. You have no clue what you are talking about. >>>> Annotating “console” as an implicit global for the whole file, as you >>>> suggested, *counteracts* this benefit. (Except, AISB, if it is a >>>> *debug* library.) > > You are picking my comment regarding the OP's question and putting it in > an wide context. What is the name for this fallacy? It is not a fallacy. Your knee-jerk suggestion is unwise at best. As I indicated, the logical course of action, *if* JSLint is actually a problem, is to use something like JSHint, to use console.log() only in the right places, and then use JSHint & Co.’s refined annotation. Even the OP seem to have realized that. >>>>> (2) an obsolete and opinionated linter such as JSLint. >>>> The same is true for other linters *by default*, so that argument does >>>> not hold water. >>> Nonsense. >> >> It is not nonsense. *For example*, JSHint will by default produce a >> warning on the use of “console”, too, because it does not need to be >> defined in order to be used; so that is not at all “opinionated” of >> JSLint. > > You are missing the point. JSLint is opinionated and everyone knows > about that, Especially the silent majority which agrees with you :-> <https://en.wikipedia.org/wiki/Argumentum_ad_populum> > except (maybe) his creator. But you are trying to distort my words > conveniently in favour of your arguments. Your logic is flawed. That JSLint may be “opinionated” on certain points does not change the fact that it is a good idea to point out the unintended use of “console” and other environment-specific global symbols. >> [If you want to remember, you had made that argument yourself; I am >> merely repeating it. Unfortunately, one can observe here again >> that you "forget" your own arguments when they become inconvenient >> for you.] > > You do that *all the time*. Liar. The record shows that I am the first to admit when I have been *showed* to be wrong. >> However, maybe by contrast to JSLint, JSHint provides several ways in >> which to disable that warning in *some* places where the use of “console” >> was *intentional*. > > My suggestion for using the JSLint global directive would affect only > the file in which it appears - the OP's example. Nonetheless, you are > trying to spread panic around such a trivial fact as if it was the end > of the world. Nonsense. You do not know the full content of the OP’s file. >>> That was hilarious indeed. >> It was. Your overconfident ignorance is most refreshing at times. >> Have you ever heard of the Dunning–Kruger effect? > > Again, one can observe your customary behaviour in using /ad hominem/ > fallacy against everyone that "dares" to thwart your arguments. <https://en.wikipedia.org/wiki/Dunning–Kruger_effect> >> Here is another one: >> >> /* somewhere in code that the OP’s code uses */ >> Object.prototype.answer = 42; > > Extending Object.prototype is generally a bad idea, but extending it > with enumerable properties is even worse. I would never expect that from > you. Straw man. You really need to read more carefully. > I had enough. Bye. “I am out of arguments but I am afraid to admit it.” -- PointedEars 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 | Next — Previous in thread | Next in thread | Find similar | Unroll thread
get average height in an object JRough <janis.rough@gmail.com> - 2017-11-11 14:57 -0800
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-12 06:04 -0200
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-12 06:49 -0200
Re: get average height in an object John G Harris <niam@jghnorth.org.uk.invalid> - 2017-11-12 13:39 +0000
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-12 13:40 -0200
Re: get average height in an object JRough <janis.rough@gmail.com> - 2017-11-13 12:06 -0800
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-15 13:14 -0200
Re: get average height in an object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-11-15 22:21 +0100
Re: get average height in an object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-11-15 22:57 +0100
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-16 02:46 -0200
Re: get average height in an object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-11-17 13:06 +0100
Re: get average height in an object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-12 18:24 +0100
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-13 00:26 -0200
Re: get average height in an object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-13 03:42 +0100
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-13 01:23 -0200
Re: get average height in an object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-13 14:16 +0100
Re: get average height in an object Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2017-11-13 14:20 -0300
Dictionary-like objects (was: get average height in an object) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-13 19:56 +0100
Re: Dictionary-like objects Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2017-11-13 20:26 -0200
Re: Dictionary-like objects Julio Di Egidio <julio@diegidio.name> - 2017-11-13 15:48 -0800
Re: Dictionary-like objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-15 02:55 +0100
Re: Dictionary-like objects Joao Rodrigues <groups_jr-1@yahoo.com> - 2017-11-15 12:30 -0200
Re: Dictionary-like objects John G Harris <niam@jghnorth.org.uk.invalid> - 2017-11-15 15:59 +0000
Re: get average height in an object JRough <janis.rough@gmail.com> - 2017-11-13 12:08 -0800
Re: get average height in an object John G Harris <niam@jghnorth.org.uk.invalid> - 2017-11-13 10:17 +0000
Re: get average height in an object JRough <janis.rough@gmail.com> - 2017-11-13 12:07 -0800
Re: get average height in an object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-11-12 11:00 +0100
Re: get average height in an object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-11-12 11:15 +0100
Re: get average height in an object JRough <janis.rough@gmail.com> - 2017-11-13 12:28 -0800
csiph-web