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


Groups > comp.lang.javascript > #9076

Re: Silly Newbie Mistake

Newsgroups comp.lang.javascript
Subject Re: Silly Newbie Mistake
Date 2011-12-09 10:01 -0800
References (3 earlier) <Xns9FB5E4AE76AC3eejj99@194.109.133.133> <1ae2e7lj274chonhfrmu0joiat5c1da7bd@4ax.com> <Xns9FB66F4737E9eejj99@194.109.133.133> <g1o2e7pr9m9i8bmiokgn5rtom4jdsve4ok@4ax.com> <Xns9FB665A72778eejj99@194.109.133.133>
Message-ID <dii4e75affk33rto94052kvaauddlbtr8q@4ax.com> (permalink)
Organization A noiseless patient Spider
From Gene Wirchenko <genew@ocis.net>

Show all headers | View raw


On 09 Dec 2011 08:59:36 GMT, "Evertjan."
<exjxw.hannivoort@interxnl.net> wrote:

>Gene Wirchenko wrote on 09 dec 2011 in comp.lang.javascript:
>
>> [snip]
>> 
>>>> Sometimes,
>>>> this causes problems though less than right after typing the code
>>>> in. 
>>>
>>>Why would that cause problems [stipulating that you understand the
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>code? 
   ^^^^

>>      Oh, come on!  Typos, and of course, 
>
>Modular programming even on the minute scale of common browser
>javascript prograsmes, will prevent that. 
>
>function tempModule(arguments) {
>    	alert(arguments);
>    	return tempReturnValues; // replace with absolute test-value;
>};
>
>If this works, then replace the fmodule with it's dynamic equivlent.
>
>
>> if I am experimenting with features, your stipulation is silly:
>
>This is not a stipulation, it is an advice from years of experience.

     *You* used the word "stipulating" above.

>> it is not a safe bet that I understand the code totally.
>
>It should not be a "safe bet", it should be your effort.
>your code cann't be sound, if you don' understand it, 
>and an added bonus is that you learn from this added understanding.

     Perhaps, you have missed the point.  I am learning JavaScript.
Note the word "learning".  That means that I do not know as much about
it as I would like.  I have been entering code from a text and working
with it.  If I already understand the code, there is little or no
point to entering it.  If I do not, then there is from the opportunity
to learn.

     Having entered some code, it might not work due to:

  1) bugs: I have found more than one bug in the code.  I am an
experienced P/A, just not in JavaScript yet.

  2) language/browser/other changes since the text was published: The
copyright is 1999, but it is the best text that I have found so far as
to level of detail, and despite its minor errors, it has not flipped
the bozo bit.

  3) my typos: These can be nasty.

>Trying to debug code that you do not understand is futile, 
>because it is error-prone. Just testing a ununderstood code can never
>reach the level of stability that you usually would expect of your
>programming and that can be reached by understood and debugged code. 

     It is hardly futile.  I do get it debugged, and at this point, I
also learn more about the language.  Among other things, knowing
language failure patterns is useful in debugging.

>Total understanding is easuier if you understand your modular modules
>and the compilation of those modules in your total design. 

     Sure.

>Experimenting with say! new DOM-features in a large code without first
>having tested and understood that feature on a small scale on a simple
>test-page seems inadvisable. 

     How fatuous!  That is exactly what I am doing.  However, I am at
the point where some of these exercises are not short bits of code.
Some of them depend on the interaction of many bits.  Besides, it is
not enough to be able to handle small bits of code; I need to be able
to handle larger aggregations of code.

Sincerely,

Gene Wirchenko

.

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


Thread

Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-06 18:32 -0800
  Re: Silly Newbie Mistake "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-07 08:43 +0000
    Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-07 10:16 -0800
      Re: Silly Newbie Mistake "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-08 21:28 +0000
        Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 14:36 -0800
          Re: Silly Newbie Mistake Tim Streater <timstreater@greenbee.net> - 2011-12-08 22:39 +0000
            Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 17:10 -0800
              Re: Silly Newbie Mistake Tim Streater <timstreater@greenbee.net> - 2011-12-09 10:13 +0000
          Re: Silly Newbie Mistake "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-08 23:41 +0000
            Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 17:15 -0800
              Re: Silly Newbie Mistake "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-09 08:59 +0000
                Re: Silly Newbie Mistake Mike Duffy <Use_guestbook_page@website.in.sig> - 2011-12-09 13:03 +0000
                Re: Silly Newbie Mistake Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-09 15:39 +0100
                Re: Silly Newbie Mistake Mike Duffy <Use_guestbook_page@website.in.sig> - 2011-12-10 00:40 +0000
                Re: Silly Newbie Mistake Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-10 13:19 +0100
                Re: Silly Newbie Mistake "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-09 15:13 +0000
                Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-09 10:01 -0800
                Re: Silly Newbie Mistake "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-10 15:07 +0000
              Re: Silly Newbie Mistake Norman Peelman <npeelmandog@cfl.rr.com> - 2011-12-09 06:44 -0500
                Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-09 10:04 -0800
  Re: Silly Newbie Mistake Steve Wakeford <wakeford83@gmail.com> - 2011-12-07 05:40 -0800
    Re: Silly Newbie Mistake Tim Streater <timstreater@greenbee.net> - 2011-12-07 15:35 +0000
  Re: Silly Newbie Mistake Jacob Block <jacob.block@gmail.com> - 2011-12-07 09:20 -0800
  Re: Silly Newbie Mistake Jacob Block <jacob.block@gmail.com> - 2011-12-07 09:25 -0800
  Re: Silly Newbie Mistake Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-08 03:56 -0800
    Re: Silly Newbie Mistake "Mel Smith" <med_cutout_syntel@aol.com> - 2011-12-08 11:31 -0700
    Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 11:49 -0800
      Re: Silly Newbie Mistake Tim Streater <timstreater@greenbee.net> - 2011-12-08 21:35 +0000
        Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 17:22 -0800
      Re: Silly Newbie Mistake Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-09 05:04 -0800
      Re: Silly Newbie Mistake Dr J R Stockton <reply1149@merlyn.demon.co.uk> - 2011-12-09 21:07 +0000
  Re: Silly Newbie Mistake Ross McKay <au.org.zeta.at.rosko@invalid.invalid> - 2011-12-09 09:47 +1100
    Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 17:26 -0800
      Re: Silly Newbie Mistake Ross McKay <au.org.zeta.at.rosko@invalid.invalid> - 2011-12-09 12:47 +1100
  Re: Silly Newbie Mistake Dr J R Stockton <reply1149@merlyn.demon.co.uk> - 2011-12-08 19:40 +0000
    Re: Silly Newbie Mistake Gene Wirchenko <genew@ocis.net> - 2011-12-08 17:24 -0800
      Re: Silly Newbie Mistake Dr J R Stockton <reply1149@merlyn.demon.co.uk> - 2011-12-10 23:41 +0000
  Re: Silly Newbie Mistake kiran <kiranmbadi@gmail.com> - 2011-12-08 17:18 -0800
  Re: Silly Newbie Mistake "J.R." <groups_jr-1@yahoo.com.br> - 2011-12-10 17:03 -0200

csiph-web