Conversion from: Protocol (Practical Extraction and report language), PHP (Hypertext Preprocessor), ASP (Active Server Pages), JSP (assumerver pages) for some technical comparison. Perl (Practical Extraction and Report Language) is a very old scripting language. Most of the original web applications were written in Perl, which is very similar to the C language and flexible to use. It is as convenient and fast as the C language for file operations and processing. It is precisely because of the flexibility and excessive redundancy Syntax of Perl that many Perl programs are difficult to read and maintain code. As a result, the number of users is decreasing, in addition, it is possible to be replaced by python. In addition, Perl seems to consume a lot of CPU resources, and its efficiency seems to be insufficient. Successful Perl development case: movable type-one of the world's most used blog systems, powerful enough to match a CMS system. AWStats-a very classic log system with extremely fast speeds and powerful functions. Conclusion: Perl can play a major advantage in some applications, but its poor maintainability makes it difficult to popularize it. PHP (Hypertext Preprocessor) is a script language embedded in HTML pages. It borrowed a lot of C and Perl syntax and combined with PHP's own features, so that web developers can quickly write dynamic pages. PHP is a completely free open-source product with no cost. Apache and MySQL are also examples of free open-source products, which are very popular in foreign countries. PHP and MySQL are used together, we can quickly build a good dynamic website system. Therefore, most foreign host systems are equipped with free Apache + PHP + MySQL. It is generally considered that the execution efficiency of such a combination is higher than that of IIS + ASP + ACCESS, while the latter must also pay for Microsoft. PHP syntax is similar to Perl, but PHP contains more functions than Perl. php has no namespace, so you must avoid Module name conflicts during programming. Although an open-source language requires simple syntax and rich functions, the inherent defects in the internal structure of PHP result in PHP being unsuitable for compiling websites that are larger than those of small and medium-sized amateur websites. Successful Case of php development: mediawiki-the famous Wikipedia program. It is incredible that such a large entry can be supported only by PHP + MySQL. WordPress-the famous blog system has no function at all in terms of movable type. Many users have moved from movable type to Wordpress. Conclusion: The PHP syntax is simple, easy to learn, and easy to use. It is helpful for quick development of custom websites with different functions. Due to the structural defects of PHP, it is difficult to develop and maintain PHP on complex large projects. Asp ASP (Active Server Pages) is a scripting language that comes with Microsoft's Windows IIS system. It can be used to execute Dynamic Web service applications. The syntax of ASP is very similar to Visual Basic. People who have learned VB can get started quickly. asp is also the simplest and easiest development language in these scripting languages. However, ASP is the only language in these languages that does not support cross-platform programming. Because ASP scripting language is very simple, its code is also easy to understand, combined with HTML code, you can quickly complete the website application. ASP is very popular in China, because most of Chinese users use pirated windows and pirated sqlserver, while ASP + COM + sqlserver is actually a good combination, its performance is not inferior to that of PHP + MySQL, especially windows and sqlserver, which have a graphical interface, which is easier to maintain than Apache and MySQL, therefore, it is also a good choice for countries that do not pay attention to intellectual property rights. However, ASP is very simple, so the functions that can be accomplished simply by using ASP are limited. Fortunately, the COM (Component Object Model) technology saves ASP and Microsoft provides the COM/DCOM technology, the application scope of ASP is greatly expanded, making ASP almost infinitely scalable. Conclusion: Like PHP, ASP is simple and easy to maintain. It is suitable for small-sized website applications. Through DCOM and MTS technologies, ASP can even complete small-scale enterprise applications, however, ASP does not support cross-platform systems, which is very difficult for large-scale project development and maintenance. JSP is a dynamic web page Technology launched by Sun. JSP technology uses Java as the scripting language. Anyone familiar with Java can get started quickly. Although JSP itself is also a scripting language, it is essentially different from PHP and ASP. Both PHP and ASP are interpreted and executed by the Language engine, while JSP code is compiled into a Servlet and executed by the Java Virtual Machine. This compilation operation only occurs when the first request is made to the JSP page. Therefore, JSP is generally considered to be more efficient than PHP and ASP. JSP is a server-side scripting language. The biggest advantage is the high development efficiency. jsp can use JavaBeans or EJB (Enterprise JavaBeans) to execute more complex processing required by applications, however, this website architecture is not easy to maintain because its business rule code and Page code are mixed. Therefore, it does not meet the requirements of large applications and is replaced by the MVC-based Web architecture. The core idea of MVC is to divide an application into three parts: model, view, and controller. The model refers to the data of the application and the operations on the data. The view refers to the user interface, and the Controller is responsible for the synchronization between the user interface and program data. Through the MVC Web architecture, the coupling relationship between each part can be relaxed, and the business logic processing can be separated from the page and data. In this way, when the Code of one module changes, it does not affect the normal operation of other modules, so the MVC-based Web architecture is more suitable for the trend of large-scale application development. Therefore, many foreign large enterprise systems and business systems use the above MVC architecture to support highly complex web-based large-scale applications. Conclusion: JSP is not as easy to learn and use as PHP and ASP for website development. The number of hosts supporting Java is smaller than that supporting PHP, this restricts the development of Java Technology on websites to a certain extent. However, in terms of enterprise software applications, MVC still has considerable advantages, although its configuration and deployment are more complex than other scripting languages, Java-based MVC Architecture is almost the only choice for cross-platform medium and large enterprise application systems.
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.