Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26430

Re: Found anb example in a bok but foreachIn does not exist

Newsgroups comp.lang.javascript
Subject Re: Found anb example in a bok but foreachIn does not exist
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <m8185d$urk$1@dont-email.me> <XnsA414C8AE52A3Beejj99@194.109.133.133> <51b894e7-a370-4e09-9131-ffddab601bbc@googlegroups.com>
Date 2015-01-02 09:28 +0100
Message-ID <XnsA41660749D35eejj99@194.109.133.133> (permalink)

Show all headers | View raw


Scott Sauyet <scott.sauyet@gmail.com> wrote on 02 jan 2015 in 
comp.lang.javascript:

> Evertjan. wrote:
>> Tony Johansson wrote: 
>> 
>>> Here is a function that I have found in a book called "Eloquent
>>> JavaScript" but  forEachIn does not exist in JavaScript.
>>> How would I changed it so that it works. 
>> 
>> Eloquence isn't a sign of quality.
> 
> I disagree.  Eloquence is not definitive proof of quality, but it
> is one useful sign.

We are talking about self-declared eloquence, which should make you 
suspicious.

> But beyond that, do you have a substantive critique of the book?
> 
> I've used it to help teach beginning JS programmers.  I think it's
> one of the better ones around.  I don't remember seeing any reviews
> of it here, but I have not been paying very much attention for the
> last year.
> 
> Have you read it?  At least some versions of it are freely available
> on the web.

The fact that the OP as a beginner should be subjected to code that does not  
show which used functions are JS-native, and which are to be found elsewhere 
in the book, does not give me much confidence.

 
>> If a function in such a book does not "work",
>> the best thing to do is 
>> 
>> 1 to throw the book away,
>> probably you can still do this this year.

It is clear the book is needlessly complex for the OP.

I have never heard of a JS-book that was not:
outdated, incomplete, full of errors, error-prone, overselfconfident, etc.

JS should better [imho, but that is always implied] be learned than taught. 
learned by specs, example, trial and error, where the 'teacher' is absent of 
does not want to express superior knowledge.

If found that is true for most other subjects too, believing in a revered 
teacher usually sets you of on the wrong foot.

>> 
>> 2 define what you want such new function to do.
>> 
>> 2 build this function from scratch.
> 
> 3. Look for earlier definitions in the book for the missing parts.

One really should not have to do that, such definitions should be 
backpointed.

> Christoph M. Becker's response has already done that for the OP.  Such
> a response is more informative and IMHO better for the group than a 
> snide disparagement of the book in question.

Now you are talking, rubish I mean, as 

1 why should a responce be "good for the group"?

2 why should a responce be informative?

3 why should a response be be compared with an 'already' one, also given the 
nonsequential nature of the usenet server system?

4 what is wrong with a 'snide disparagement'?

All that is required according to netiquette and charter, is 'on topic', 
meaning 1 about JS in general or 2 about the NG.


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Found anb example in a bok but foreachIn does not exist "Tony Johansson" <johansson.andersson@telia.com> - 2014-12-31 17:27 +0100
  Re: Found anb example in a bok but foreachIn does not exist "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-31 19:43 +0100
    Re: Found anb example in a bok but foreachIn does not exist Scott Sauyet <scott.sauyet@gmail.com> - 2015-01-01 22:23 -0800
      Re: Found anb example in a bok but foreachIn does not exist "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-01-02 09:28 +0100
        Re: Found anb example in a bok but foreachIn does not exist "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-01-02 07:14 -0800
          Re: Found anb example in a bok but foreachIn does not exist "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-03 00:19 +0100
        Re: Found anb example in a bok but foreachIn does not exist Scott Sauyet <scott.sauyet@gmail.com> - 2015-01-02 08:12 -0800
          Re: Found anb example in a bok but foreachIn does not exist "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-01-02 17:52 +0100
          Re: Found anb example in a bok but foreachIn does not exist "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-03 00:04 +0100
      Re: Found anb example in a bok but foreachIn does not exist "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-01-02 07:06 -0800
  Re: Found anb example in a bok but foreachIn does not exist "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-31 19:56 +0100

csiph-web