Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScript vs VBScript for ASP pages

Status
Not open for further replies.

shaddow

Programmer
Mar 22, 2001
1,862
RO
I'm shure it was somone before who posted same thing.
But still i would like to hear new opinions.

1. Using VBscript only
2. Using JScript only
3. Using VBScript combined with JScript code

Post your opinions about these 3 subjects

As for me i tend to see first if there is some server load, speed problems and i use only 1 or 2.
I have mixed VBScript with JScript before, i needed to use some of JS features.

JSscript for asp it's about same thing as for VB but have to be carefull to the new sintax, wich is not hard in my opinion onece you knw preatty well VBScript

Anyway i tend to use JScript, since i'm the only one who will admin those files.

Still more to say about this but i'll wait for another opinions.

________
George, M
 
1. Using VBscript only
my main pojnt on the use of vbscript for active serv pages is the platform was intended for this language. The ease of use with ASP is of the best out of the langauge choices I feel for beginners to novice programmers on ASP. However the limitations bring you to otehr choices when you get a bit more advanced and bring your skills to a better system wise understanding of how the communications can be improved by language choice.

2. Using JScript only
error handling is the best here. The syntax is more easy goign then vbscript I think. Every chance I get to use jscript I do. however I still think writing a coplete application in jscript can be a nightmare. unless you are fairly advanced in javascript syntax you're going to be pulling your hair out by the end of page #1.

3. Using VBScript combined with JScript code
a combination of muscle?!? vbscript to handle your objects and jscript to handle the manipulations and logic of the scripts. the code in jscript for a more advanced programmer is easier to debug and easier to understand. free form is natural in jscript while it is not in vbscript. The level at which the developer is at really dictates the use of either or.

that's a down and dirty thought on the two, but again I ahve to bring in the fact there a multitude of choices. Tarwn and myself brought up Python a bit ago which I think we've both found to be the absolute to get power out of ASP. Seems a downfall I've seen in ASP developers is not thinking past vbscript and jscript as a choice (in some cases not past vbscript) go to activestate.com and any langauge with a activeX scripting engine can be used for ASP development. Then you have all the power to choose what your application needs to work at peak performance as all langauges have their best qualitites for the logic and conditions.

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
The only problem I have seen with using Python for ASP is that the tie-ins to the ASP objects (Response, Request, etc) was written a little shoddily. Ie, slooooow compared to VB. The goosd thing though is that everything else is much faster the VBScript and JScript :)

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top