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


Groups > comp.lang.javascript > #17739

Re: To catch an exception

Message-ID <3221544.VYG4icSqfp@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-12-17 15:33 +0100
Subject Re: To catch an exception
Newsgroups comp.lang.javascript
References <50cedccc$0$6950$e4fe514c@news2.news.xs4all.nl> <24673781.rTodiTUJqZ@PointedEars.de> <50cf2add$0$6910$e4fe514c@news2.news.xs4all.nl>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Tom de Neef wrote:

> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> schreef in bericht
> news:24673781.rTodiTUJqZ@PointedEars.de...

It is supposed to be a attribution _line_, not a novel.

<http://insideoe.com/>

>> Tom de Neef wrote:
>>> Can someone indicate what I do wrong here:
>>> {code}
>>> [.]
>>
>> Your code is hardly readable and you are not posting the real code.  You
>> are indenting your code, but it is missing whitespace in important places
>> to that effect.  Also you should not be commenting out lines that are not
>> commented out when the code fails to do what it should do.
>
> I do not understand. This is cut&paste from the *.js file.

So much the worse.

> I see a good layout, also in JJ's respons.

I can assure you that your opinion of what is “a good layout” differs from 
that of many, if not most, professional programmers, for good reasons.

> This code should be working without the try..catch clause.

Who knows.  I would not take the time to decipher it.

> I put it there hoping to find out more about the error. And although FF
> will enter the catch, it does not reveal to me why it did that.
> I have tried to put a demo together. But the anomalous behaviour does not
> show up in a simple program.

Which indicates that the not so simple version is erroneous.  Rewriting it 
in an easily readable way may reveal the problem already.  Certainly it will 
make your posting and your problem more interesting to others.


PointedEars
-- 
var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
)  // Plone, register_function.js:16

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


Thread

To catch an exception "Tom de Neef" <tdeneef@qolor.nl> - 2012-12-17 09:50 +0100
  Re: To catch an exception Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-17 10:44 +0100
    Re: To catch an exception JJ <jaejunks@nah.meh> - 2012-12-17 10:07 +0000
    Re: To catch an exception "Tom de Neef" <tdeneef@qolor.nl> - 2012-12-17 15:23 +0100
      Re: To catch an exception Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-17 15:33 +0100
        Re: To catch an exception John G Harris <john@nospam.demon.co.uk> - 2012-12-17 15:28 +0000
          Re: To catch an exception Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-17 17:32 +0100
            Re: To catch an exception John G Harris <john@nospam.demon.co.uk> - 2012-12-18 17:01 +0000
              Re: To catch an exception Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-29 14:41 +0100
                Re: To catch an exception Dr J R Stockton <reply1252@merlyn.demon.co.uk.invalid> - 2012-12-30 16:23 +0000
            Re: To catch an exception Dr J R Stockton <reply1251@merlyn.demon.co.uk.invalid> - 2012-12-18 16:35 +0000
              Re: To catch an exception Andrew Poulos <ap_prog@hotmail.com> - 2012-12-19 22:15 +1100
      Re: To catch an exception Patricia Shanahan <pats@acm.org> - 2012-12-17 07:18 -0800
  Re: To catch an exception JJ <jaejunks@nah.meh> - 2012-12-17 10:04 +0000
    Re: To catch an exception "Tom de Neef" <tdeneef@qolor.nl> - 2012-12-17 14:48 +0100
      Re: To catch an exception Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-17 15:25 +0100
  Re: To catch an exception Tim Streater <timstreater@greenbee.net> - 2012-12-17 16:03 +0000
  Re: To catch an exception Scott Sauyet <scott.sauyet@gmail.com> - 2012-12-18 08:26 -0800
  Re: To catch an exception Bart Van der Donck <bart@nijlen.com> - 2012-12-30 08:42 -0800

csiph-web