Writing Classic ASP code in JScript has a lot going for it: more humane syntax, a sane object system, programmer familiarity, and a general lack of annoyances. You can even mix legacy VBScript and new JScript code in your existing Classic ASP apps if you’re mindful of a few quirks.
I’ve been thinking that there’s got to be some reason that it isn’t used more. Is it just momentum and the lack of documentation? Or are there good reasons from a performance, scalability, or reliability point-of-view to stick with VBScript?
N.B.: I’m only interested in comparing VBScript and JScript. I know that Classic ASP is a pile in general, but I have no choice here.
I vote in favor of JScript. I did some research a few years ago and found no real performance impact to using one or the other.
It’s true that many examples and documentation (all of which will be old) will use VBScript, but these are easy to translate if you are moderately familiar with JScript.
JScript is Microsoft’s flavor of ECMAScript, or “JavaScript”.
http://javascript.crockford.com/prototypal.html
http://ejohn.org/blog/simple-javascript-inheritance/
http://w3mentor.com/learn/javascript-examples/object-oriented-javascript/example-of-encapsulation-using-javascript/
VBScript might have an edge over JScript with certain API’s or interfaces, but this is easily remedied. The same thing jQuery does for the awful DOM API in the browser, JScript on the server-side can do because it’s just so darn flexible.
There shouldn’t be maintainability issues with JScript on the server side (as opposed to VBScript) because any decent web programmer NEEDS to know JavaScript, which Microsoft has embraced (see Windows 8, see VS2010 including jQuery in templates, etc. and so much more).
I think it has more to do with the audience and ignorance. Microsoft likes to cater to its VB developers. I used to be a VB developer before my eyes were opened to C# and JavaScript.
Please! Use JScript. Promote JScript. Let’s move forward and leave VBScript in the dust.