Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14525
| From | Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: the if condition not workiong properly |
| Date | 2012-06-15 19:56 +0100 |
| Organization | Home |
| Message-ID | <HaGOfnD6V42PFwX6@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | (1 earlier) <4fd5bbd1$0$6946$e4fe514c@news2.news.xs4all.nl> <1597347.oMNUckLgyt@PointedEars.de> <n1BUf3GqMg1PFwpq@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD> <d4joHGNgn51PFwfh@invalid.uk.co.demon.merlyn.invalid> <m+Pm1REPgb2PFwB7@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD> |
In comp.lang.javascript message <m+Pm1REPgb2PFwB7@J.A830F0FF37FB96852AD0
8924D9443D28E23ED5CD>, Thu, 14 Jun 2012 11:08:15, John G Harris
<john@nospam.demon.co.uk> posted:
>On Tue, 12 Jun 2012 at 20:34:56, in comp.lang.javascript, Dr J R
>Stockton wrote:
>>In comp.lang.javascript message <n1BUf3GqMg1PFwpq@J.A830F0FF37FB96852AD0
>>8924D9443D28E23ED5CD>, Mon, 11 Jun 2012 15:39:38, John G Harris
>><john@nospam.demon.co.uk> posted:
>
> <snip>
>>>In colloquial English "illegal" has two meanings. One is something
>>>criminal. The other, more general, is disobeying some rules.
>>>
>>>Example, taken from the C++ standard :
>>> "Using these specifiers with type declarations is illegal in C++."
>>
>>Nevertheless, one should eschew its use in public; in particular, in
>>error messages that a normal respectable user might see. Normal users
>>can be consternated by an assertion that an illegal operation has been
>>attempted or performed. The English language contains many words ... (
>
>Better still, avoid technical words.
> "This program has done something it shouldn't do"
>is better than
> "Illegal operation performed".
Agreed. I have seen something very like "The impossible has happened";
and I have read of "GOTO is followed by an improper designational
expression".
>>It can also work unreliably.
> <snip>
>
>Surely not working sometimes is just one way of not working.
Yes; but in practice the exact meaning of "sometimes" is important.
There is a difference in practice between a short run-time program that
unsuspectedly contains something equivalent to
if (!(Math.random()*25)) Misbehave()
and the snippet which I posted before.
Both, if I have it right, fail about 2% of the time. But one of them
can be investigated by repeated testing whenever one wants; and the
other will fail on the 31st of the month, always and only.
That is why I say that new Date() should not be used _for_ creating a
Date Object, only _for_ reading the date/time. For the former purpose,
use new Date(0) (or other argument).
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
the if condition not workiong properly Ganesh <ganesh.vemakoti45@gmail.com> - 2012-06-10 22:54 -0700
Re: the if condition not workiong properly Jason C <jwcarlton@gmail.com> - 2012-06-11 02:27 -0700
Re: the if condition not workiong properly "Tom de Neef" <tdeneef@qolor.nl> - 2012-06-11 11:35 +0200
Re: the if condition not workiong properly Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-11 13:12 +0200
Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-11 15:39 +0100
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-12 20:34 +0100
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-12 20:47 -0700
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-14 18:49 +0100
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-14 20:45 -0700
Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 06:30 +0000
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-15 09:42 -0700
Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 18:38 +0000
Re: the if condition not workiong properly Stefan Weiss <krewecherl@gmail.com> - 2012-06-15 19:23 +0200
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-15 12:54 -0700
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-16 21:46 +0100
Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-17 08:03 +0000
Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-14 11:08 +0100
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-14 09:23 -0700
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-15 19:56 +0100
Re: the if condition not workiong properly Andrew Poulos <ap_prog@hotmail.com> - 2012-06-16 13:26 +1000
Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-16 11:33 +0100
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-17 19:42 +0100
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-12 20:10 +0100
csiph-web