Java lost to PHP in Web development language (RPM)

Source: Internet
Author: User
Tags learn php

One of the main language developers of PHP, one of Zend's founders, Andi Gutmans recently bluntly criticized the Java language in his blog. He points out that the way Java vendors are trying to provide dynamic language implementations on the JVM is simply not right, Java has lost the war on Web development language, and PHP is the de facto standard and winner.

Gutmans's article in the technical community sparked a strong controversy, very different views of people on this, I am here to explain my views of PHP and Java two languages.

I have earlier in the "Perl, PHP, ASP, JSP technology comparison" in the article compared to PHP and Java similarities and differences, in short, PHP is an interpretation of the execution of the scripting language, grammar and C language similar, easy to learn to use, do not understand the computer can be used by non-professionals to learn PHP. While Java is compiled into a class file and then executed on a Java virtual machine, Java development needs to be familiar with Java syntax and some core architectures to implement a reusable, cross-platform software that is much more difficult to learn in Java than PHP.

In fact, the Java language has obvious advantages over PHP from a technical architecture, and Java uses an object-oriented approach to system design, and PHP uses a process-oriented approach to development. PHP can only implement a simple distributed two-tier or three-tier architecture, while Java implements a multi-tiered architecture. The database layer (persistence layer), the application (business) logic layer, the presentation logic layer are separated from each other, and now the different layers have some mature development framework support. For example, struts is the use of Java Web Development technology to implement the MVC design pattern, but in the business logic layer also has spring framework, database persistence layer has hibernate and other frameworks. These frameworks enable developers to efficiently, rationally, and scientifically architect multi-layered business applications. Java's performance is better than PHP in terms of math and database access. In fact, Java has become almost the only choice for large, cross-platform enterprise applications (Microsoft. NET does not support cross-platform), but in Web site application development, Java is facing the risk of being marginalized by PHP, almost all of the virtual host support Php+mysql, but the support of Java is few, on the resources, the Internet has countless PHP resources, A lot of famous big sites (such as Facebook, MediaWiki, etc.) are PHP-based, and there are few successful Java sites, what is the reason?

Java's philosophy is "write once, run everywhere", Java under the framework of application architecture is unparalleled, far better than any other language, Java framework for large-scale collaborative programming development, system easy to maintain, reusability is better. and PHP is easy to self-study, so that hot spare can quickly and concisely write code, suitable for rapid development, small and medium-sized application systems, low cost of development. PHP is simpler than Java for debugging and publishing.

The differences in concepts have led to different results for Java and PHP in Web application development, and while Java's mathematical computing and database access have advantages and architecture is perfect, PHP can simply and easily support high-intensity Web access, enabling rapid development of applications There are a lot of virtual hosts that support PHP, making it much faster and easier to develop a website in PHP than to develop a website in Java. Java has the advantages of only the traditional software project as the core of the development model, and PHP is more suitable for the customer-centric development of the SaaS model, therefore, PHP's current advantage in Web site development is entirely due to the particularity of Web site development, not the programming language characteristics of the decision.

Therefore, PHP in the Web site development language of the war has slowly left Java behind, Java to want to catch up on web site development, indeed should listen to Andi Gutmans opinion, completely change the idea, otherwise the difference can only be more and more far away.

In addition, although the International lamp (linux+apache+mysql+php) architecture has occupied the dominant position, but in China also has a freak, is based on Microsoft's Windows server+iis+sqlserver+asp/asp. NET architecture, in theory, Microsoft's architecture can also achieve good performance, but unfortunately windows and SQL Server expensive, the entire architecture in performance than lamp not only have no advantage, but there are many disadvantages, so Microsoft's this set of guys in the international market is not open. While domestic use of Microsoft piracy can ignore the cost, and ASP easy to learn and easy to use than PHP, and even the IT layman can be used, so there is a small market in the country. But with China's improved protection of intellectual property rights, free lamp is still the trend of the future.

Java lost to PHP in Web development language (RPM)

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.