Search on Google, you can find a lot of bad evaluation of ASP, what slow speed, abnormal handling mechanism, lack of object-oriented mechanism, low development efficiency, more loopholes and so on. In order for everyone to have a correct understanding of the ASP, I first name it.
One, ASP not slow, slow is the database
A few years ago, I used the Dynamic Network Forum program frame A BBS, this set of procedures is the classic asp+access architecture. I also met some people said that the forum is slow, sometimes the problem of the card dead. However, the problem has been solved since I switched to the SQL Server database. So the culprit is access. The time required for program execution is millisecond, at this level, whether it is 10 milliseconds or 100 milliseconds, it is not felt, but access is poor concurrency , blocking part of the program execution, causing the page card to die.
Second, the exception handling mechanism is very good, but many people do not know
In the past, many people, including me, have been using VBScript to write ASP programs, and VBScript's exception handling mechanism is really awful. However,JScript is good because it supports Try...catch statements that include C # and Java, enough to handle all exceptions.
Third, the development of JavaScript in the current, object-oriented is not a problem
Since JavaScript arose from Ajax, its object-oriented mechanism has been emulated . It's not really object-oriented, but as a small and medium Web program, that's enough. Similarly, JScript, with ECMAScript as its core, also has the same mechanism. In addition, ECMAScript's language flexibility is undoubtedly the strongest, do front-end development of the people who are most aware of this.
The loophole is caused by the programmer
Often heard that the ASP's SQL injection vulnerability is very serious, in fact, no matter what language there is such a loophole, the problem is that programmers will not block. This problem can be solved simply and efficiently by parameterized query in ASP. No string substitution is required or even data validation is required.
Let me say the benefits of learning ASP (JSCRIPT):
First, before and after the Taiwan technology and repair
Both the foreground JavaScript and the backstage JavaScript are based on the ECMAScript core, so the JavaScript in the background is well written and the level of JavaScript in the foreground can be improved .
Ii. Understanding the fundamentals of Web applications
asp.net, PHP and other technologies shielding the bottom of many web, this is very bad for beginners to understand the principles of Web programs. And ASP is absolutely from the most basic writing, such as uploading files of the program must analyze the data packet to obtain file data.
Third, the development of high efficiency
Many people say that asp.net's development is efficient and I am opposed to it. If the application's functional requirements are not complex, it is definitely faster to develop with ASP. Because the ASP is parsing execution, no compilation is required. modification, debugging to be much more convenient. Windows also provides an excellent operating environment (IIS) for ASPs without additional configuration. In addition, the current background in the same language, a lot of code can be reused , which is unmatched by other technical platforms.
There are other server-side Javascript (SSJS) occurrences in recent years, such as Jaxer , JScript.NET , Mozilla also has a SSJS project. Look forward to ECMAScript in the background development of a greater development.
Arisisi Supplement (technical strongman)
said that the ASP is not a rookie is not a novice is not even the ASP will learn, technology is not used to show off, is used to create real value, in fact, many applications have been able to implement ASP, and there are a large number of generic source can refer to It is easy to translate into productivity, so it can be said that, in Dynamic Web page technology, ASP is one of the most widely and mature technologies. ASP of course there are many deficiencies, then need other technology to solve.
Many people mistakenly think that ASP is a simple, inefficient pronoun, that the ASP is low-energy, outdated, not trivial, but also very simple, a study will be proficient in a pondering.
Some people talk about ASP is not safe, write the ASP's program, if strictly according to the code to write safe writing, write the program there is no reason not safe. Those people said that ASP is not safe, as if PHP, JSP program will not appear SQL injection like.
Some people say that ASP is not efficient, really want to be efficient you can combine COM, in the Win32 platform COM efficiency Java is never catch up. What is the point of simply speaking speed? Java speed is absolutely not high, on the speed of words, many technical solutions are higher than the speed of Java, this point to learn the Java people most clearly, but who cares about this point? Java's victory is definitely not because of its speed. It is irrational to say speed simply by throwing away the specific application environment.
Some people talk about ASP this can not do, that do not do, the function is very limited. In fact, as long as you understand the principles of the web, you will understand that write ASP program surface is playing a scripting language, but you command the Web Server, there are a lot of complex functions ASP can also do well, some features ASP if because of the inherent limitations of Web applications do not do, you do not think JSP , PHP can do it.