Thomas 'PointedEars' Lahn said the following on 12/18/2005 2:23 PM:[color=blue]
> Java script Dude wrote:
> ^^^^^^^^^^^^^^^^
> Even your nickname talks volumes. Java != JavaScript. (Which includes,
> but is not limited to, that it is not necessary to create String objects
> as you did before.)[/color]
Now your pedantics reach to nicknames? First, you are assuming that its
a nickname in the English sense, it is not. It is an alias. If you want
to be pedantic, lets be pedantic.
[color=blue]
>[color=green][color=darkred]
>>>>because of a (as expected) flaw in IE where DOM Elements
>>>>does not inherit from Object.
>>>
>>>So you let a peculiarity of the IE DOM define what is "correct"
>>>regarding the programming language? YMMD.[/color]
>>
>>Unfortunately, in the corporate world, IE is a fact that cannot be
>>avoided. MS has sucessfully created issues for all of us JS hackers[/color]
>
>
> You are not a JS hacker. You are a script-kiddie.[/color]
Coming from you, thats a joke.
[color=blue][color=green]
>>and we must work within their domain.[/color]
>
>
> No, "we" must not. And "we" need not to and still be successful. And,
> IE is not even the point here.[/color]
OK PointedHead, if you want scripts to work in IE, you *will* play by
IE's rules.
[color=blue]
> What you have still not understood is that JScript as implemented in IE
> is an ECMAScript implementation, a prototype-based programming language.
> JavaScript as supported since NN2, and now in Mozilla/5.0, is another
> ECMAScript implementation.[/color]
And what YOU have not understood is that ECMA was an attempt to
standardize the languages in IE and NN. ECMAScript is a subset of
Javascript and JScript. It started that way and remains that way.
<snip>
[color=blue][color=green]
>>I'd say this my example is much more useful for JavaScript as it is
>>short and consice and will work in all browsers.[/color]
> In all browsers that you have tested with, perhaps. Which are most
> certainly not many.[/color]
And now you know how many browsers people have to test with? Wow. OK,
tell me how many I have to test with at my disposal?
[color=blue]
>[color=green]
>>The only disadvantage is the loss of JS namespace.[/color]
>
>
> You are relying merely on the implementation of the toString() method of
> Function objects that is _known_ to differ between UAs, which is the main
> disadvantage. Relying on it can be considered harmful. The method may
> be nice for educational purposes, it is certainly not for practical use.[/color]
No, to write practical scripts you *must* know the peculiarities of the
browsers. That is Reality. Theory is your domain, stick to it. You suck
at Reality Thomas.
[color=blue][color=green][color=darkred]
>>>><div id=divTest></div>
>>>><script>
>>>
>>>Invalid HTML. <URL:http://validator.w3.org/>[/color]
>>
>>I was not writing on how to write standards based html. I was writing a
>>minimal amount of html to get the JS to run. Get a grip![/color]
>
>
> You were talking nonsense before, and you are talking nonsense again.
> Script code used in not Valid markup is not likely to work as supposed,
> being non-interoperable per se. Invalid examples are useless.[/color]
OK which is it Thomas? Just a day or two ago you posted untested broken
code and your defense was that it was to others to test and validate it.
Now, you say people should post valid/tested code. The term for that is
hypocritical.
Troll elsewhere.
<snip>
[color=blue][color=green]
>>If I am missing something maybe you could give some insight on how to
>>best continue a thread that is closed.[/color]
>
>
> You have not even understood what medium you are really using, what
> Usenet is. "continue a thread that is _closed_". YMMD again.[/color]
Depends on your definition and concept of a thread being closed. In the
sense that you can reply to any thread in Usenet, it is not "closed" in
that sense. In the sense that the discussion appears to be finished then
it can be considered "closed". Before you decide to be pedantic about
language usage, you should know that language is not definitive. It
evolves and different dialects muddy it up. And that is quite easy to
prove. Tell me what the following statement means:
"Lets go blow a fag away".
[color=blue]
> <URL:http://en.wikipedia.org/wiki/Usenet>[/color]
You need better references that are more reliable and more dependable
for accuracy.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/