Bruce Eckel rating PHP: limited to small-scale applications

Source: Internet
Author: User
Tags what php drupal

PHP is the most impressive thing: You don't have to get to know the language well. Think about how many languages you know can achieve this? The obvious one is java. You need to know a lot about compiling a hello world, let alone creating a web application. But for PHP, all of these are useless.

PHP is better than Perl when accessing Bad Behavior. I remember when the Web was just emerging, people often said they would use Perl to create large programs, even though they knew (there was no way to convince them) that they would eventually fail.

On the other hand, PHP does have the ability to create large programs, such as Drupal. My friend Nancy niclaisen (Blogger here) said she wants to build a travel website and I suggest her check Drupal. She did it and finally chose it. In her opinion, Drupal's user community is so outstanding that it provides a lot of help for her to establish a site and launch it smoothly.

PHP allows cainiao to get started quickly and directly do what they are interested in without worrying about complicated programming theories and practices. You only need to do this to get what you want on the webpage.

However, this is also the problem with this language. You will find many examples of PHP implementation that are completely incorrect. This is generally written by those who copy each other, because no one knows what the problem is. One of the first examples I used was the PHP file lock. The results are found many, but not correct. In fact, PHP is mainly used in databases that can handle all consistency problems, so that people do not have to consider some underlying problems. However, the program language processes the same way in terms of high-level interaction with the database and underlying interaction with the file system. Therefore, there is no such sign as "dragon comes" for beginners. I feel that there are too many people in the community who "enjoy their benefits", but few people really understand and understand the basic principles. So there was a situation where we broke into this field where few people were interested and abused it in ignorance.

Then, PHP5 appeared, which is the major component of C ++ and Java. This powerful feature is really exciting, but my worries are getting worse: it seems that people can have all the features without carefully considering the details and the impact on all aspects of the language. On the contrary, over the past decade, I have focused on every careful choice made by the Python language. Time will prove that maybe the PHP community will solve the problem of how to use all of these features, but I have many doubts.

At the same time, I used PHP on the new site where I updated slowly. The key is that I only use it in a very small scope. For example, PHP can solve a low-level HTML problem that cannot easily include files. PHP does, and it is easy to deploy my design scheme on the entire website. Sometimes you just want to embed a little thing you do on the page, which is what PHP is good.

However, as long as the target becomes a little more complex, I think it is best to switch to Python. Therefore, PHP is limited to small-scale applications and I don't want to use it widely.


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.