Re: Microsoft chooses JScript!
From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 11/03/04
- Next message: Al Dunbar [MS-MVP]: "Re: Slow registry access using StdRegProv"
- Previous message: name: "Re: Script can't execute"
- In reply to: Al Dunbar [MS-MVP]: "Re: Microsoft chooses JScript!"
- Next in thread: Gerry Hickman: "Re: Microsoft chooses JScript!"
- Reply: Gerry Hickman: "Re: Microsoft chooses JScript!"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Al Dunbar [MS-MVP]: "Re: Slow registry access using StdRegProv"
- Previous message: name: "Re: Script can't execute"
- In reply to: Al Dunbar [MS-MVP]: "Re: Microsoft chooses JScript!"
- Next in thread: Gerry Hickman: "Re: Microsoft chooses JScript!"
- Reply: Gerry Hickman: "Re: Microsoft chooses JScript!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|