java/perl/php language comparison

Source: Internet
Author: User
Tags php language php and mysql movable type

This article will present the most commonly used four dynamic Web Language Perl (Practical Extraction and report Language), PHP (hypertext Preprocessor), ASP (Active Server pages) , JSP (JavaServer Pages) for some technical comparisons.
Perl
Perl (Practical Extraction and report Language) is a very old scripting language. Most of the original Web applications were written in Perl, and Perl, like C, is very flexible and has the same ease of handling and processing as the C language.
It is also because of the flexibility of Perl and the "excessive" redundancy syntax, which makes the code of many Perl programs difficult to read and maintain, so the number of people used is diminishing and there is now a possibility of being replaced by Python.
In addition, the CPU consumption of Perl seems to be high, the efficiency seems to have some shortcomings.
A successful example of Perl development:
Movable type-One of the most used blogging systems in the world, powerful enough to compare with a CMS system.
Awstats-is a very classic log system with extremely fast and powerful functions.
Conclusion: Perl can play a great advantage in some applications, but its poor maintainability makes it difficult to popularize.
Php
PHP (hypertext Preprocessor) is a scripting language embedded in HTML pages. It borrows heavily from the syntax of the C and Perl languages and combines PHP's own features so that Web developers can quickly write dynamically generated pages.
PHP is completely free open source products, do not spend money, Apache and MySQL is also free open source, in foreign very popular, PHP and MySQL with the use, can very quickly build a good dynamic website system, Therefore, most of the foreign host systems are equipped with free apache+php+mysql. This collocation is generally considered to be more efficient than iis+asp+access, and the latter's use must be paid separately to Microsoft.
PHP's syntax is similar to Perl, but PHP contains far more functions than perl,php without namespaces, and must be tried to avoid module name collisions when programming. An open source language requires simple syntax and rich functions, but the inherent flaw in PHP's internal structure makes PHP unsuitable for writing larger sites than small and medium-sized amateur sites.
A successful example of PHP development:
mediawiki-famous Wikipedia program, such a huge article can only use Php+mysql to support, it is incredible.
wordpress-Famous blog system, the function of the slightest loss in movable type, many users have moved from movable type to WordPress.
Conclusion: PHP syntax is simple, easy to learn and easy to use, very conducive to the rapid development of a variety of different functions of the custom Web site, PHP because of structural flaws, so that PHP in complex large-scale project development and maintenance are more difficult.
Asp
ASP (Active Server Pages) Microsoft's Windows IIS system comes with a scripting language that can be used to execute Dynamic Web Service applications. ASP syntax is very similar to visual BASIC, people who have learned VB can get started quickly, ASP is also the most easy to learn the language of the development of these scripting languages. But ASP is also the only language in these languages that does not support cross-platform well. (Reproduced: http://www.ytbdqn.com/show-4-68-1.html)
Because the ASP scripting language is very simple, its code is easy to understand, combined with HTML code, to quickly complete the application of the website.
ASP in the domestic unusually popular, because most of the domestic use of pirated windows and pirated SQL Server, and Asp+com+sqlserver is actually a good match, its performance is not lost in Php+mysql, In particular, Windows and SQL Server have graphical interfaces that are easier to maintain than Apache and MySQL, and are therefore a good choice for countries that do not value intellectual property.
However, because the ASP is very simple, so the simple use of ASP can complete the function is limited, fortunately, COM (Component Object Model) technology to save the ASP, Microsoft provides com/dcom technology, greatly broaden the scope of the ASP application, Makes ASP almost unlimited extensibility.
Conclusion: Like PHP, ASP is simple and easy to maintain, very suitable for small web applications, through DCOM and MTS technology, ASP can even complete small-scale enterprise applications, but the fatal disadvantage of ASP is not support cross-platform system, in large-scale project development and maintenance is very difficult.
Jsp
JSP (JavaServer pages) is a dynamic Web technology launched by Sun. JSP technology is in the Java language as a scripting language, people familiar with the Java language can quickly get started.
Although the JSP itself is also a scripting language, but with PHP, ASP has the essential difference. Both PHP and ASP are interpreted by the language engine to execute the program code, while the JSP code is compiled into a servlet and executed by the Java virtual machine, which occurs only on the first request to the JSP page. Therefore, it is generally considered that JSP execution efficiency is higher than PHP and ASP.
JSP is a server-side scripting language, the biggest benefit is the development of high efficiency, JSP can use JavaBeans or EJB (Enterprise JavaBeans) to perform the application requires more complex processing, But this site architecture, because its business rules code and page code mix, is not conducive to maintenance, and therefore does not adapt to the requirements of large applications, instead of the MVC-based Web architecture. The core idea of MVC is to divide the application into three parts: model, view and controller. The model refers to the data of the application, and the operation of the data, the view refers to the user interface, and the controller is responsible for the synchronization between the user interface and the program data. Through MVC's Web architecture, you can weaken the coupling of the various parts and separate the business logic processing from the page and the data so that when the code of one of the modules changes, it does not affect the normal operation of the other modules, so the MVC-based Web architecture is more adaptable to the trend of large-scale application development.
As a result, many large enterprise systems and business systems abroad use the above MVC architecture to support highly complex web-based large-scale applications.
Conclusion: JSP for Web site development is not as easy to learn as PHP and ASP, support Java host is less than the host to support PHP, which restricts the development of Java technology on the website to a certain extent, but in the enterprise software application, MVC still has a considerable advantage, While its configuration and deployment are more complex than other scripting languages, the Java-based MVC architecture is almost the only choice for a cross-platform medium-sized enterprise application.

java/perl/php language comparison

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.