How many of the ten misconceptions about PHP have you got? , PHP ten misconceptions several _php tutorials

Source: Internet
Author: User
Tags php cli

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


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


Ten misunderstandings in Chinese literature history

1, obtains
The original sentence: "Or: ' Obtains, how?" ' Son Yue: ' Why Bao de? To direct complaint, to de bao de "--" The Analects of the Constitution asked "
Never thought originally in Confucius this sentence "obtains" behind also followed another passage, what words? Son Yue: "Obtains, why Bao de?" To direct complaints, to de bao de! "After reading, waking wake up, we are a given out of the Confucius fans to play a!"
What was the real situation at that time? A disciple of Confucius asked him, "Master, others hit me, I do not hit him, but I will be good to him, with my morals and upbringing ashamed to die him, let him repent, OK?" Confucius said, "you obtains, that ' why Bao de ', others to Germany to treat you, you need to Mr Delay return others, but now others hit you, you should ' to direct the complaining ', pick up the board to fly him!" ”
Degree of distortion: 8
Negative Impact: 9
2, the people can make it, not to make it known
The original sentence: "Zi Yue: Xing in poetry, stand on ceremony, into music." The son said: The people can make it, not to know it. --"The Analects of Confucius and Qinber"
We combine the context of contexts, it is easy to get this sentence right clause method: "Zi Yue: Xing in poetry, stand ceremony, into music." The people may make it, and shall not make it known. ”
Confucius's whole sentence is that poetry, ritual, music, these three things are the basis for educating the public, we must do a lot. If the people have mastered poetry, ritual, music, good! Let them be free to play, and if the people do not play these things, we must educate them and let them know and understand them. This is the "NCLB" of the big educator bore the intention of the old gentleman.
Degree of distortion: 7
Negative Impact: 9
3, non-toxic not husband
The original sentence: a small amount of non-gentleman, extravagant not husband. --An alliance of folk proverbs
This is from the folk proverb should be "quantity small non-gentleman, extravagant not husband", this is a very good sentence, inside full use of antithesis. Show a masculine strong spirit, a magnanimous man image on paper, unfortunately, the working people word of mouth of this sentence, to the court those so-called high school Eight Fight "gentleman" mouth changed a taste. Why is it?
This is from the ancient literati habit, in this couplet-like proverb, "degree" for Shang word, read awkward, it is easy to read as ping sheng word "poison." Those scholars who have a high demand for temperament have a good day to eat, and then play their expertise to make their own claims, the sentence changed to "non-toxic not husband".
Degree of distortion: 9
Negative impact: 5
4 The woman and the villain difficult to raise also
The original sentence: the only woman and the villain is difficult to raise, near the sun, far from the resentment. --"The Analects and the Yang"
In the "historical Records of Confucius Family", referring to Confucius before the trip of the Wei, Confucius "in the Moon, the spirit of the same car with his wife, the Huan of Yong Tong, so that Confucius for the second ride, the city of swagger." Confucius said: ' I have not licentiousness and lust. ' So ugly, go to the Guardian. ”
I come to the general translation of this paragraph, the contemporary national education workers bore the king's invitation to the patriotic monarch, came to the patriotic visit to study and recuperation. But during this period, the old gentleman suddenly found himself to be shabu, people are simply to take his identity to show off their own, not really support him to this civilized patriotic people. In particular, the Weiling wife, in order to raise their own body look, public show, belittle Confucius.
Hole old gentleman very depressed, pack up left Wei, after leaving, mood calm, think of Wei wife that relies on favor, arrogance domineering disorderly political harassment, on the bad things, made a feeling: "Only woman and villain difficult to raise also!" The near is not the sun, the far is the resentment. ”
Look at Confucius's trip to the Wei, all understand, he is not the words of the sudden start scolding all women including their mother, but there is a particular object, this object, is weiling that wife South son and other people.
Degree of distortion: 6
Negative Impact: 9
5, obscurity also have a career, and know also is boundless
The original sentence: I also have a life, and the knowledge is also boundless, with the infinite, almost has —————— "Chuang Tzu, Health Lord"
This sentence of Chuang-Tzu actually says this, "obscurity also has the kayak, but knows also is boundless, to have the boundless with the infinite, almost already." "My Chuang Tzu's life is limited, but I face the knowledge is infinite, want me to have limited life, to pursue that kind of forever can not see the end of the side, this will kill their own"
Distorted...... Remaining full text >>

Recommend several PHP systems

Alas, do not look for, and DZ as powerful as has not seen. PHPWIND,VBB What is the amount of data a big or more than DZ, let alone other.
You can change your style when you look at it. Others recommend you see may also not meet the requirements.
Pictures can do to optimize, say a word of thumb, zend optimized dz, performance is definitely the first and not the second, or in DZ more spend some energy, also worth.

http://www.bkjia.com/PHPjc/900267.html www.bkjia.com true http://www.bkjia.com/PHPjc/900267.html techarticle How many of the ten misconceptions about PHP have you got? , PHP ten misconceptions a few as developers, you will often see the internet do not use the reasons such as XX news. And as the most popular open source ...

  • 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.