Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34336
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: get average height in an object |
| Date | Mon, 13 Nov 2017 14:20:01 -0300 |
| Organization | Aioe.org NNTP Server |
| Lines | 103 |
| Message-ID | <ouck80$50s$4@gioia.aioe.org> (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> |
| NNTP-Posting-Host | yOyVt583+n751sB2fTz/Wg.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
| X-Mozilla-News-Host | news://aioe.org |
| Content-Language | en-GB |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.javascript:34336 |
Show key headers only | View raw
Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: >> >> I doubt an experienced developer would use: (1) console.log() in >> production code, > > Which shows that, at the very least, you are not an experienced developer > yourself. /Ad hominem/ fallacy - the one you like to use most of the time. > *In the right places*, console.log() can be and *is* *very > useful* even in production code. "Different strokes for different folks". Keep using console.log() in production code as you wish. If you really do what you preach, that's because you work alone or do not use version control systems such as GitHub. Anyway, putting console.log() in source code is insane and unnecessary, given all modern browsers provide "DevTools" way more capable to debug code nowadays. > > The very point of linters like JSLint is to make sure that it does not > appear *unintentionally* in *production* code, as a remnant of debug code. > > Annotating “console” as an implicit global for the whole file, as you > suggested, *counteracts* this benefit. (Except, AISB, if it is a *debug* > library.) > >> (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. > >> Anyway it's up to the OP to decide what to do. I was only commenting >> about the specific OP's problem regarding JSLint. > > In doing so, however, you have made claims about the programming language > and about its objects which are provably false. > >>>>>> As a side note there are better JS linters such as ESLint and JSHint. >>>>> JSHint (which I prefer) will also warn about the undeclared use of >>>>> console.log(). >>>> Of course ESLint, JSHint and JSLint warn about undeclared use of >>>> 'console' and its methods. JS Linters 101. >>> That is simply untrue. As I have showed, it depends on the >>> configuration. >> >> The default configuration of all those linters will warn about the use >> of console.log() (and missing semicolons where they are expected). > > But this is a fundamentally different statement than the one that you made > before. How did you get that idea? > >>>>>>> and it says it needs a semi colon after the data object? >>>>>> Sure does. A semicolon is required in the end of a statement. >>>>> No, in general it is not. >>>> Nonsense. If semicolons were really optional there would not be a thing >>>> called "Automatic Semicolon Insertion" (ASI) in the Specification, which >>>> states: >>> You have no clue what you are talking about. >> >> You too! > > LOL. That was hilarious indeed. > >>>> <http://www.ecma-international.org/ecma-262/6.0/#sec-automatic-semicolon-insertion> >>>> Omitting semicolons does not mean they are optional in the Language. >>> Yes, it means exactly that. >> >> It's obvious. > > Apparently you misunderstand my “Yes” to mean confirmation of your opinion > when it means the exact opposite. Then I should say you have no clue what you are talking about. RTFM. > > Subsequently, I have elaborated on how such an object can actually be > created. You called that “drivel”. > >> Your logic is flawed. > > No, yours is. > You are trying to shift the burden of proof. -- Joao Rodrigues
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