Home > Article > Backend Development > Web Manufacturing Tools: The Battle between Java and PHP_PHP Tutorial
Compared with the evolution trend of Java from simplicity to complexity, PHP's insistence on being simple and easy to learn has been welcomed by the majority of developers. In recent years, it has gained momentum, and simplicity is power. This sentence is applicable to the recent rise of PHP. It is so suitable. Not too bad. To be honest, I originally thought it would not be too powerful. Seeing its recent growth and development, and directly attacking the areas where the Java camp failed to manage, it made people look at it with admiration. Former Netscape CEO Marc Andressen predicted at the Zend/PHP conference that PHP, a simple and easy-to-learn description language, will be used by more people than Java for the development of Web applications. Citing data reported by Cnet Taiwan, there are approximately 22 million websites in the world. Use PHP, and the number is steadily increasing.
Why is PHP so popular? I think simplicity and ease of use are the biggest reasons. If a website only provides an entrance for users to search for information, there are many ready-made, free, easily available, and ready-made website software on the Internet, such as calendars, website management, news, registration systems, e-newsletters, and weather forecasts. Free application modules are available for download and installation. Why not do such a good thing? Moreover, as long as you buy a book and install it, you can easily set up a discussion forum without writing any programs. This is a good entry point for people without programming experience, and it is also in line with the requirements of small and medium-sized enterprises to build websites at low cost. need. As a Java person, the rise of PHP has given me three inspirations:
Web development: The way to survive in the cracks of PHP
Can these network application software Java not do it? PHP is sandwiched between JSP (JavaServer Page) and ASP (Active Server Page). To be honest, there should be no chance of survival at all, because their difficulty, concepts and architecture, and program syntax are not very different; if From the perspective of flexibility, ASP can call COM+ components, and JSP can call Java Beans components. In terms of development scalability and system scalability, it is much better than PHP, and the software application space is relatively broader. Of course, these languages have their own specialties and have developed separately. PHP has not become worse in many website development tool markets, but has become bigger. Although the software is free is one of the main reasons, I think it is more important. Yes, the PHP community is very focused on developing dynamic web technology, and this point is right. If you want to learn ASP, you have to learn VB and learn component development. In addition to JSP, you can also do Severlet in the Java field, and you will be able to do it with Severlet. If you want to combine EJB together, the system will become more and more complex. The more complex it is, the higher the learning threshold will be. As a result, the willingness to learn will be low, there will be few talents, and the cost will be relatively high, which will directly affect the willingness of enterprises to adopt it.
Today’s software world is not only a battle for applications, but also a tug-of-war for platforms; in the past, developers would compare which programming language was better, including combinatorial language, Cobol, PL1, Ada (artificial intelligence), LSPER, C and other languages. came out, in the end only the C language was left. Even Pscal needed Delphi to survive. If you want to ask what features a popular programming language should have, it is really difficult to summarize these features, such as development flexibility and functionality. Powerful, less restrictive, easy to develop, highly usable, etc., every language has these characteristics innately. If these conditions are the key factors for the survival of programming languages, I think the above-mentioned languages should not end, but as technology evolves and the environment changes Changes, languages that are not suitable or do not meet the needs of developers will gradually be eliminated.
Meet the needs of small and medium-sized enterprises: free, easy to learn
However, in the noisy technology space, the only thing in common is that everyone supports and actively invests in the development of the Internet, and The PHP community focuses on developing mainstream Internet applications and makes these templates free for users to download. These application templates can definitely be developed using ASP or JSP, but because no one has done it, this part is missing; ASP or JSP Application software produced by JSP has to be sold for money. Since it is a commercial activity, users would rather choose software that costs nothing, is easy to use, and has source code that can be modified. PHP is combined with other open source software such as Apache, MySQL and Linux. , the entire ethnic group will become stronger and stronger. I believe that PHP will get better and better, but its main focus - dynamic web technology, if it is caught up by JSP or ASP, its future will be limited. After all, PHP still cannot handle a large number of back-end computing mechanisms, and its efficiency and The rigor will be more challenging; large calculation processing work must be calculated by Java Beans. If it is a .NET platform, use .NET Component for calculation. In the opposite situation, if JSP or ASP is used to develop website application software, can it catch up with the performance of PHP? I think it only takes 1 to 2 years to catch up. Will these software be free after the development is completed? This is the difficulty. Most of the JSP or ASP application modules currently on the market require payment, and ASP is bundled with Windows Server, as well as with the web server IIS and database SQL Server. This purchase still costs hundreds of thousands, which is very important for small and medium-sized enterprises. It's said to be a huge burden.
Java front-end network applications still need to work hard
The system architecture extended by Java is from Java 2 EE, Java 2 SE to Java 2ME. The power of information is pushed from the enterprise backend to the desktop and every Every handheld device, and even every chip card, has a wide range of uses; web technology only accounts for 10% of Java technology, and web technology is all of PHP. PHP developers devote themselves to developing related applications, so they can make the most Good web page rendering effects; it’s not that Java can’t produce these effects, it’s just that fewer resources are invested in web page development, and it is developing into a deeper, broader, and more scalable future. It’s no wonder that some people say that Java is becoming more and more difficult and difficult. The more complex it is. The purpose of this article is not to attract PHP developers to the embrace of the Java camp, nor to encourage Java developers to work in the field of web technology in the future. Of course, if Java people want to use the language they are familiar with to develop web technology, develop into We are also happy to see that it is on par with PHP, because it has made up for a small garden where Java originally ran at the forefront but was neglected. Websites are already a must have for business operations and development. Each company plans its website mechanism according to its own needs. For companies with loose specifications, low customization needs, or without IT personnel, they are encouraged to use PHP applications. Modules, at the lowest cost and without the need to modify the program, introduce several practical application modules to meet the current needs of the company; however, companies with high customization needs and a large amount of information exchange or transaction mechanisms must I'm looking for a Java vendor.
(Editor: