From: Evertjan. on
Al Dunbar wrote on 26 aug 2010 in microsoft.public.scripting.vbscript:

> "Evertjan." <exjxw.hannivoort(a)interxnl.net> wrote in message
> news:Xns9DDF5DF1738D7eejj99(a)194.109.133.242...
>> Al Dunbar wrote on 25 aug 2010 in microsoft.public.scripting.vbscript:
>>
>>>> Isn't there a JavaScript and a jscript. Jscript a MS version of
>>>> JavaScript?
>>
>>> Yes, JScript is very much like a version of JavaScript.
>>
>> No, it just IS a version of Javascript.
>>
>> The "sort of official" name of Jacascript being ECMA-script.

Sort of Jaca?

> What you say is very much like the truth. ;-)

The result at least should be true:

<script type='text/javascript'>
var result = true != false;
</script>




--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
From: Al Dunbar on


"Evertjan." <exjxw.hannivoort(a)interxnl.net> wrote in message
news:Xns9DE09B04A7E99eejj99(a)194.109.133.242...
> Al Dunbar wrote on 26 aug 2010 in microsoft.public.scripting.vbscript:
>
>> "Evertjan." <exjxw.hannivoort(a)interxnl.net> wrote in message
>> news:Xns9DDF5DF1738D7eejj99(a)194.109.133.242...
>>> Al Dunbar wrote on 25 aug 2010 in microsoft.public.scripting.vbscript:
>>>
>>>>> Isn't there a JavaScript and a jscript. Jscript a MS version of
>>>>> JavaScript?
>>>
>>>> Yes, JScript is very much like a version of JavaScript.
>>>
>>> No, it just IS a version of Javascript.
>>>
>>> The "sort of official" name of Jacascript being ECMA-script.
>
> Sort of Jaca?

So Jacascript actually has EJMA-script as its official name? ;-)

>> What you say is very much like the truth. ;-)
>
> The result at least should be true:
>
> <script type='text/javascript'>
> var result = true != false;
> </script>

I find this a bit more intuitive:

<script type='text/vbscript'>
result = not ( true = false )
</script>

But did you get the gist of my "very much like" comment? A person named Jane
looks very much like my wife. The fact that she also *is* my wife does not
negate that first statement. She certainly does not look unlike my wife as a
result of being my wife.

/Al


From: Evertjan. on
Al Dunbar wrote on 27 aug 2010 in microsoft.public.scripting.vbscript:

> I find this a bit more intuitive:

> <script type='text/vbscript'>
> result = not ( true = false )
> </script>

I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic.
Felt intuitivity leads to sloppy programming.
There is beauty in Javascript that fails in VBS.

Example, the sloppy allowance in vbs of this faulty statement:

if a = b then c = d end if


> But did you get the gist of my "very much like" comment? A person
> named Jane looks very much like my wife. The fact that she also *is*
> my wife does not negate that first statement. She certainly does not
> look unlike my wife as a result of being my wife.

"I just saw a son of my parents, who is not my brother."

A statement that validates only for much less than 50% of humanity.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
From: Mayayana on

| Got side tracked with interesting results. I did buy a used VBS book,
| circa 1999. It appears VBS is really for web apps.

It started out as a web scripting language to compete
with Netscape. Many people assumed Netscape would
then incorporate VBScript. It never did. Likewise with
ActiveX. By 1998 people were asking for a GUI scripting
tool to replace the outdated DOS command line. MS used
VBS in that, creating the WSH. By adding "CreateObject"
they extended VBS to handle COM libraries. There's a great
deal that VBS can do, but very little it can do by itself.
It's strength is that it can use nearly any COM library
with a Dispatch interface. ("late binding")

Today VBS is for use with WSH, in ASP, and in HTAs.
(Scripted GUI programs that run in IE, using the DOM
to provide functionality.) You can use it online, but only
for IE.

I use VBScript on my own website. In general I try to
avoid any script because it's unsafe and I don't enable it
in the browser myself. But IE is way behind in support
for CSS, and I want to do things (like "flyout menus")
that won't work in at least some versions of IE. So I use
PHP to load one version of each webpage for IE and
another, script-free version of the page for all other browsers.
Since the IE page goes only to IE I can use VBS for the
script.

|
| Still curious about VBS. My guess is that it is nowhere as powerful as
| using VB, but isn't really used for of with html.
|

VBS is a script, subset version of VB. The language is
very similar. At it's simplest, VB is designed so
that beginners can essentially write script, using
only variant data types and ActiveX Controls, with
garbage collection. But that's just the training
wheels. VB is normally used with strong data typing,
uses the Win32 API, and one can dispense with
the ActiveX .ocx file wrappers. In that usage VB
is comparable to C++, producing native code
executables. (But the methodology is different from
C++, since VB is designed to be safer, with garbage
collection, simplified string operations, and less direct
access to memory addresses.)

That all needs to be differentiated from VB.Net, which
is often referred to as "VB" these days. VB5 and 6 are
VB. They're very similar, with VB6 being a minor update.
Starting with VB.Net (sometimes misleading called "VB7")
Microsoft dropped support for VB while adding a VB-like
language to the .Net system, which is essentially a Java
clone running JIT-compiled code on top of a VM.

Note that if you use VB, VB5/6 are supported from
Win95 through Win7, but I don't think the runtime for VB5
is pre-installed on Vista/7. You'd need to install that on
target machines. If you use VB6 it's essentially dependency
free on 2000/ME/XP/Vista/7. (The runtimes can be installed
on earlier Windows versions.)


From: Mayayana on
|
| I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic.
| Felt intuitivity leads to sloppy programming.
| There is beauty in Javascript that fails in VBS.
|
| Example, the sloppy allowance in vbs of this faulty statement:
|
| if a = b then c = d end if
|

I don't see the problem with that. If it's sunny
then we're going to the beach. I don't find that I
get confused re-reading my code, thinking that the
beach turned into the sun.

I find that arrogance
about one's chosen language tends to be in relation
to the terseness of it. C++ people are stuck with
annoying semi-colons, but that doesn't stop a lot
of them from holding forth about their "superior"
language. And many Perl users seem to think they're
the Chosen People. But "We're number 1!" is simply
childish, no matter what the topic.

PS - Al, I'd suggest that you don't take up this
issue with your wife. She may not appreciate that
you're thinking about women who look like her --
even if they are her. :)