Re: Microsoft chooses JScript!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 11/03/04


Date: Tue, 2 Nov 2004 19:07:12 -0700


"Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
news:u0QMQdUwEHA.2568@TK2MSFTNGP10.phx.gbl...
>
> "Gerry Hickman" <gerry666uk@yahoo.co.uk> wrote in message
> news:Ob8i3QSwEHA.2116@TK2MSFTNGP14.phx.gbl...

<snip>

> > You can imagine, after the debacle last week about VBScript, I was
> > somewhat stunned to see Microsoft's latest script released as a well
> > written, open source, *.js file:)
>
> I'll have to have a look to see how well it scans for a non-js scripter!

OK, it looks good.

I find the /\.js/ syntax just a bit more confusing than a double-quoted
string, but there is probably a reason for that.

Interesting to note that both files use // comments exclusively, and never
/* this type */. Perhaps they are not so enamoured of that type of comment,
or feel it should not survive into the release product.

One thing that bothers me with this code and with much of the vbscript I
have run across is how much of the code exists in the global scope. I try to
limit it to a few key DIM statements; the only executable in global scope
being something along the lines of:

    CALL MAIN

The layout is certainly a model of consistency in the use of whitespace, and
the commenting, although perhaps a bit sparse, is reasonably good. I hate it
when the comments seem to be there as an ego boost...

I tell you, though, I found it easier to follow in primalscript, with its
colour-coding and function/method list dropdown than notepad with its (umm,
text area, I guess).

Finally, interesting about this open source approach. Is it just me, or
should I not be surprized at having to accept a licence agreement before
seeing the source?

/Al



Relevant Pages

  • Re: BBS software - ACOS / MACOS?
    ... become open source if for no other reason than I could put out the ... TC may have raised some heckels with MACOS, ... I sold it because I do not have the time to deal with supporting it, which was the reason I bought it from Lance in the first place, but that was over 10 years ago. ... 2008 I Kill Spammers, Inc. ...
    (comp.sys.apple2)
  • Re: BBS software - ACOS / MACOS?
    ... become open source if for no other reason than I could put out the ... TC may have raised some heckels with MACOS, ... I sold it because I do not have the time to deal with supporting it, which was the reason I bought it from Lance in the first place, but that was over 10 years ago. ... As far as LLUCE, it is for real, I had the code disks and had looked it, but it was real raw that I did not want to deal with it, plus I was working on improving GBBS. ...
    (comp.sys.apple2)
  • Re: does this multi-value product exist?
    ... debate from a dogmatic viewpoint rather than one based on reason. ... What IS being said is that you are welcome to use whichever environment you like. ... Did such strong feelings from the Open Source community interfere with anyone's rights and abilities to develop proprietary software? ...
    (comp.databases.pick)
  • RE: Diebold Global Election Management System (GEMS) Backdoor
    ... reason not to do something; it's the reason given by the people who oppose ... So in this case if people are asking for open source voting ... > trying to kill free enterprise. ...
    (Bugtraq)
  • Re: A free 3d medical image viewer (windows/linux/macosx)
    ... can give me a good reason for distributing the source code. ... development under the right kind of open source licence, ... get contributions developed by others back to your own software. ... bug report without the source code. ...
    (comp.protocols.dicom)