Summary of the advantages and disadvantages of building ASP with server-side JavaScript using JavaScript (jscript.

Source: Internet
Author: User
Tags perl script

Summary of the advantages and disadvantages of building ASP with server-side JavaScript using JavaScript (jscript.

"Planning" took a long time and learned a lot of code. I just want to know where to write and update constantly. I am very grateful to all my colleagues who have such programming experience.

Advantages:

1. C-style syntax {}, friendly and intoxicating.

2. ";" can be used to compress the code at the final release.

3. What are the three-object operators? : Of course, vbs can also simulate an IIF (expression, truepart, falsepart) function in VB.

4. Prototype-based inheritance to construct a javascript class

5. One-dimensional array operations are more powerful than vbs and provide a large number of methods. However, they do not have the concept of two-dimensional arrays and can be simulated.

6. The default (optional) parameter is very nice.

7. Try {} catch (e) {} finally {} error capture is much better than on error resume next.

8. Learning to use JavaScript and ASP code will help you learn JSP in the future.

9,

Disadvantages (that is, the advantages of vbs ):

1. JavaScript does not have a binary processing method. In this way, functions such as generating verification codes and uploading without components are missing. Of course, you can use COM components or mixed scripts.

2. You can use VB to create a vbs editor. It is very good. The most powerful JavaScript editor I have ever seen is the eclipse + jseclipse plug-in.

3. vbs provides rich date and formatting Functions

4. Integration with COM + is not as good as vbs

5,

Experience Summary

1. asp is not a language. There are many server-side languages for writing ASP. The default ones are VBScript, JavaScript, Perl script, and phython.

2. The javascript mentioned here refers to the standard W3C standardized ecmascript. In fact, the system will call the JScript engine to explain the script on the server, whether the scripting language is JavaScript or JScript, that is to say, the effects of <% @ Language = "JavaScript" codePage = "65001" %> and <% @ Language = "jscript" codePage = "65001" %> are the same.

3. In addition to W3C standardized objects, JScript also provides enumerator objects and vbarray objects for JS traversal (for each in vbs) set and the vbarray returned from the COM component.

4. Currently, there are very few JS (ASP) programs in China.
Works in the cocoon series at www.ccopus.com
Lbs2 (blog) Program of SiC
Jswiki (http://www.nirvanastudio.org/or http://sourceforge.net/projects/jswiki)

To be continued ......

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.