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


Groups > comp.lang.javascript > #9110

Re: Silly Newbie Mistake

From Dr J R Stockton <reply1149@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: Silly Newbie Mistake
Date 2011-12-10 23:41 +0000
Organization Home
Message-ID <8Y9gv9Su4+4OFwly@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <nojtd7pb39ofku9j7a1bi6pog635kga2ua@4ax.com> <5ioBxgF7KR4OFwWv@invalid.uk.co.demon.merlyn.invalid> <lmo2e757mar0dn9vgb1osnhmh98fl5lj14@4ax.com>

Show all headers | View raw


In comp.lang.javascript message <lmo2e757mar0dn9vgb1osnhmh98fl5lj14@4ax.
com>, Thu, 8 Dec 2011 17:24:58, Gene Wirchenko <genew@ocis.net> posted:

>On Thu, 8 Dec 2011 19:40:43 +0000, Dr J R Stockton
><reply1149@merlyn.demon.co.uk> wrote:
>
>>In comp.lang.javascript message <nojtd7pb39ofku9j7a1bi6pog635kga2ua@4ax.
>>com>, Tue, 6 Dec 2011 18:32:58, Gene Wirchenko <genew@ocis.net> posted:
>>
>>>     At the best of time, I have found debugging JavaScript code to be
>>>such a bother.  I have been using IE's F12, but it does not handle (or
>>>I have not figured out how) debugging an included file (<script
>>>src=...).  (If you know how, would you please let me know?)  As a
>>>consequence, I did not get immediate feedback on my silly error and
>>>wasted a couple of hours.
>>
>>But we here are smarter, and so use other browsers.
>
>     I prefer Firefox myself, but company standard is IE.

That suggests that you have access to Firefox.  If the company allows
you to install Firefox at work, do so, and use it as a debugger.
Otherwise, install Firefox at home, and practice there until you can
write code that has a chance of running in IE.



>>Note that the reported market share for other browsers is now
>>considerably greater than that for IE.
>
>     IE still has a considerable plurality, not that that makes a
>difference to me.  The company standard is IE.

Perhaps you should have chosen a wiser company.


>>Of course, once the author's sillies have been dealt with by using other
>>browsers, one should use IE and try to deal with its sillies.
>
>     I will be developing a complex system in IE.  I need to learn it
>inside out.

If your coding is for an intranet, or otherwise not exposed to the Great
World Outside, then it would be well to say so, in each new thread at
least.  Otherwise, that is a ludicrous, if common, policy, worthy of the
more obstinate governments of lower latitudes.


>>For code not reliant on a GUI and I/O, it may well be worth testing in
>>JScript under WSH.  That at least gives a clear indication, in your
>>choice of font size, of where it thinks the error is or becomes
>>detectable.

Then you will need to distinguish between its peculiar ideas, which you
will have to live with until IE 10 (when they will change) and your own
inaccurate ideas, which can be corrected when discovered.


>     ??? How would a Webpage not be reliant on I/O?

I wrote "code", not "webpage".  It is quite possible to have chunks of
code which manipulate data, without storing them.  A simple but
unrealistic illustration would be if you had to sort, into chronological
order, a set of strings each starting with a date/time formatted as in
        Sat Dec 10 2034 09:46:05 a.m.
(which is the sort of thing that Middle North Americans like), and it
had to be done without using the Date Object.

That task requires no I/O, and temporary debugging I/O can use
WScript.echo.

-- 
 (c) John Stockton, nr London UK  ?@merlyn.demon.co.uk  IE8 FF8 Op11 Sf5 Cr15
   news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
   <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
   <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

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