How many of the ten misconceptions about PHP have you got?

Source: Internet
Author: User
Tags php cli

As a developer, you'll often see news on the web that doesn't use XX. And as the most popular open source server-side scripting language, PHP is also difficult to escape such a fate. As everyone knows, gold no can't pure, no perfect, and then popular language will have shortcomings, or misunderstanding, so some developers may be because of these, on it at a distance, this is not really a pity?

The author summarizes the ten Misconceptions about PHP and clarifies it, and some misunderstandings are worth pondering, and some of them are just shadows. In any case, let's look at these misconceptions together.

  1. PHP is an object-oriented language, but not based on oops

This is completely incorrect understanding, especially Java programmers, who think that PHP is not based on oops, but they will find many object-oriented features, such as interfaces, methods, abstract objects, and so on. To tell the truth, the initial version of PHP does not have much object-oriented functionality, but PHP 5 adds many object-oriented techniques. More importantly, you may wonder why the bootstrap code is so simple in PHP, thanks to the combination of PHP and OO.

  2. PHP cannot implement a specific function

This misunderstanding sounds vague, but many developers think PHP cannot implement other functions such as memory access. But the fact is, PHP is an extensible language, you just have to write an extension in C or C + + to set the achievement OK. Or, you don't have to create, there are hundreds of extensions available online, and you can use them directly as needed.

  3. PHP is not secure

Since you think it's unsafe, why not write secure code for it? I admit that there is a lot of unsafe code in PHP, but as programmers, we should try to write reliable and secure code.

If you compare PHP with. NET, PHP must be a failure. But if you are a skilled programmer, you do not need security "help". Includes daily security issues, but if their paths are generated dynamically, then you have to be careful. Of course, if you are proficient in all the instructions, it may become more secure.

  4. Not suitable for large applications

A language can be used to build large and complex applications that have a certain degree of reliability and performance, while extensible PHP does not. But if you design and develop an application architecture that is stable, what is the problem with the performance and scale of the application?

The fact is that some well-known websites are designed with PHP, such as Facebook, Wikipedia, and Yahoo!, and so on, they all work well.

  5.PHP can only be used for web development

Indeed, it is common to use PHP for Web site development. However, the command-line interface (Cli:command lines Interface) allows the application to run on a non-Web server.

While some applications have high CPU requirements, PHP can still be used for development and operation by executing the PHP CLI. More importantly, if you want to use PHP to develop desktop applications, just use Windows-specific extensions to get it done.

  6. Slow development process

I really don't know where the misunderstanding came from. It's possible that the PHP code you're writing is messy and filled with a lot of MySQL statements (though they make sense, they really shouldn't be there). In fact, PHP has a large number of frameworks for developers to use, reasonable use of them will achieve a multiplier effect, greatly reducing development time. So, don't complain about slow.

  7. Professional developers do not use PHP

There are various sayings about this misunderstanding, such as PHP, which is a piece of cake for beginners, and it is for those who do not want to take the development seriously. Of course, I have to admit that PHP does not make sense in some ways, but it is really ridiculous to be mistaken. If there are many Web applications that are developed using PHP, it is completely wrong to imagine that the developers who have always been rigorous are at a distance from PHP.

  8. Performance issues

This is a trick question, not a misunderstanding. Everything is good and bad. Performance optimization has also been a topic that developers are scrambling to discuss. In fact, for low-performance applications, there may be a lot of junk code in it, such as implicit conversion, useless modules, lack of overloaded operations, and so on, which can affect the performance of PHP applications. But it will ultimately depend on how you use the language to create a stable and fast application.

  9. Inexpensive applications mean low quality

In the market environment where open source is becoming the mainstream, free and open source is the biggest advantage of PHP. This means that most developers with expertise can provide development services and can also save costs for customers. But that doesn't mean there's a problem with quality, and it's also possible to develop high-performance applications.

  10.PHP is overrated.

Well, this may just be your personal idea, and most PHP programmers don't think so.

Written in the last

With the continuous development and growth of language, misunderstandings will follow, but in any case, some false rumors will not attack and break. As the saying goes, practice is the only standard for testing truth, so it is best to test it yourself before choosing to believe or not believe it.

English Source: bestdesigntuts

How many of the ten misconceptions about PHP have you got?

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.