What are the top 10 misunderstandings about PHP ?, Top 10 misunderstandings in php _ PHP Tutorial

Source: Internet
Author: User
Tags php cli
What are the top 10 misunderstandings about PHP ?, Top 10 misunderstandings of php. What are the top 10 misunderstandings about PHP ?, The top ten misunderstandings of php are several developers. you often see news such as the reasons for not using XX on the Internet. What are the top ten misunderstandings about PHP as the most popular open source ?, Top 10 misunderstandings about php

As developers, you often see news on the Internet for reasons such as not using XX. As the most popular open-source server scripting language, PHP cannot escape this fate. As everyone knows, there are flaws or misunderstandings in the popular languages. Therefore, it is a pity that some developers may respect it because of this?

The authors of this article summarize the Top Ten misunderstandings of PHP and clarify them. some misunderstandings are worth pondering, while some of them are truly coying. In any case, let's take a look at these misunderstandings.

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

This is completely incorrect understanding, especially for Java programmers who think that PHP is not based on OOPS; but they will find many object-oriented features, such as interfaces, methods, and abstract objects. To be honest, the initial version of PHP does not have many object-oriented functions, but PHP 5 adds many object-oriented technologies. More importantly, you may wonder why the Bootstrap code becomes so simple in PHP, thanks to the combination of PHP and OO.

  2. PHP cannot implement specific functions

This misunderstanding sounds vague, but many developers believe that PHP cannot implement memory access and other functions. But the fact is that PHP is an extensible language. you only need to write an extension in C or C ++ for integration. Alternatively, you do not need to create one. There are already more than extensions available on the internet. you can use them as needed.

  3. PHP Security

Since you think it is insecure, why not write secure code for it. I admit that PHP has a lot of insecure code, but as a programmer, we should try to write reliable and secure code.

If you compare PHP with. NET, PHP certainly fails. But if you are a skilled programmer, you don't need security "help ". Including daily security issues, but if their paths are dynamically generated, you have to be careful. Of course, if you are proficient in all commands, it may become safer.

  4. not suitable for large applications

The reason why a language can be used to build a large and complex application is that it must have a certain degree of reliability and high performance, while the scalable PHP does not match. However, if the architecture of the application you designed and developed is very stable, what problems will happen to the performance and scalability of the application?

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

  5. PHP can only be used for Website Development

Indeed, it is common to use PHP for website development. However, the Command Line Interface (CLI: Command Line Interface) allows applications to run on non-Web servers.

Although some applications have high CPU requirements, PHP can still be used for development and operation by executing php cli. More importantly, if you want to use PHP to develop desktop applications, you only need to use Windows-specific extensions.

  6. slow development process

I really don't know where it comes from. It is possible that the PHP code you write is messy and contains a large number of MySQL statements (although they are meaningful, they should not be put there ). In fact, PHP has a large number of frameworks for developers to use, and reasonable use of them will achieve twice the result with half the effort, greatly reducing the development time. Therefore, do not complain about slowness.

  7. professional developers do not use PHP

There are various sayings about this misunderstanding. for example, PHP is a piece of cake for beginners, and it is prepared for those who do not want to take development seriously. Of course, I have to admit that PHP does not make any sense in some aspects, but it is really ridiculous to have such a misunderstanding. If many Web applications are developed using PHP, it would be totally wrong for developers who have always been rigorous to stay away from PHP.

  8. performance problems

This is a technical issue, not a misunderstanding. Everything is good or bad. Performance Optimization has always been a topic for developers to discuss. In fact, applications with low performance may be filled with a large amount of junk code, such as implicit conversion, useless modules, and the lack of heavy loads in operation methods, which will affect the performance of PHP applications. But ultimately it depends on how you use this language to create a stable and fast application.

  9. cheap applications mean low quality

Free and open source are the biggest advantages of PHP in the mainstream market environment. This means that most developers with professional knowledge can provide development services and save costs for customers. However, this does not mean that there is a problem with the quality, and high-performance applications can also be developed.

  10. PHP is overestimated.

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

Conclusion

With the continuous development and growth of the language, various misunderstandings will come one after another, but in any case, some false rumors will not break through. As it is often said, practice is the only criterion for testing truth. Therefore, before choosing to believe or not to believe, it is best to test and confirm in person.

Source: Bestdesigntuts


Ten misunderstandings in the history of Chinese literature

1. complain by virtue
In the original sentence, "or say: 'What is it like to report complaints by virtue of morality? 'Zi Yue: "Why do we report the virtues? Report complaints directly and report to Germany by virtue of morality.
I never imagined that another paragraph was followed after Confucius's "report by virtue". what should I say? Zi Yue: "How can I report my grievances by virtue of morality? !" After reading this, I suddenly realized that we were all played by a Confucius FANS who were out of context!
What was the real situation at that time? A disciple of Confucius asked him: "Master, if someone beat me, I will not beat him. Instead, I will treat him well. I will use my morality and education to shame him and let him regret it, OK? Confucius said, "If you complain by virtue, then 'How do you report by virtue? 'when others come to treat you by virtue, you need to return to others by virtue. but now others beat you, you should simply complain and pick up the bricks and fly to him!"
Distortion: 8
Negative impact: 9
2. the people can make it, and cannot make it known.
Original sentence: "Zi Yue: Xing Yu poetry, standing in the ceremony, Cheng Yu Le. Zi Yue: the people can make it, and cannot make it known ." -- The Analects of Confucius Qin Bo
Based on the context, we can easily obtain the correct sentence splitting method: "Zi Yue: Xingyu poetry, standing in ceremony, and becoming happy. People can, let by, cannot, let know ."
The whole sentence of Confucius is that poetry, rites, and music are the foundation for educating people. If the people have mastered poetry, courtesy, and joy, well! To make them play freely; if the people still cannot play these things, we need to educate them and let them know and understand these things. This is the intention of Mr. Kong, a big educator of "No Class.
Distortion: 7
Negative impact: 9
3. non-toxic, not husband
The old saying goes: a gentleman is not a gentleman, and no husband is not a husband. -- Associate folk proverbs
This slang from the people should have been "a small number of non-gentleman, not a husband". This is a good sentence, which fully utilizes confrontation. It shows a strong spirit of Yang Gang, and a man with an open mind is on paper. Unfortunately, the words that the working people have heard from each other, on the court, the so-called "gentleman" who has learned the best of course has changed its taste. Why?
This should begin with the ancient literati's habits. in This couplet-style proverb, "degree" is a byte, and it is easy to read as a plain word "poison ". Scholars who have very high requirements on the aesthetic of music law will have nothing to do one day, then use their expertise to make their own claims, and change this sentence to "non-toxic, non-husband.
Distortion: 9
Negative impact: 5
4 only women and villains
Original sentence: only women and little people are difficult to raise, near, not grandchildren, far from resentment. -- The Analects of Confucius Yang goods
In "historical records of Confucius family", Confucius mentioned his previous trip to Wei Guo. Confucius "lives in Wei Yuyu, while Ling Gong and his wife are in the same car, let Confucius take the ride and shake the city. Confucius said, 'I have never seen any good virtues. 'The Ugly, go to Wei ."
In this article, Mr. Kong Lao, a contemporary national education model, was invited by Wei Guojun to visit Wei Guo for study and recuperation. However, during this period, Mr. Kong suddenly found that he had been cheated. people simply took his identity to show off and raised himself. they did not really support him to educate the people of the Wei country. Especially the wife of Wei Linggong, in order to raise her own expectations and show off publicly, he devalued Confucius.
Mr. Kong was very depressed. he packed his luggage and left Wei Guo. after he left, he calmed down and remembered the bad thing Wei Guo's wife had done to disturb the people, I felt: "It's hard to raise only women and little people! There is no sun in the near future, while there is resentment in the far future ."
Looking at Confucius's journey to Wei Guo, everything is clear. His speech is not just a nervous system that suddenly scolds all the women including his mother, but a specific object, this object, it is Wei Linggong's wife, Nanzi, and others.
Distortion: 6
Negative impact: 9
5. I was born with no knowledge
Original sentence: I was born with nothing, and I knew nothing about it, so that I could stay with me. I already had ------ "Chuang Tzu · health care Master"
This sentence of Zhuangzi is actually said in this way. "I am born with nothing, and I know nothing about it. in this case, I am ready to go with nothing ." My Zhuangzi's life is limited, but the knowledge I face is infinite. I want to pursue a limited life that will never see the end of the edge, so that I will destroy myself"
Distorted ...... the remaining full text>

Several PHP systems are recommended.

Alas, don't look for it. it's as powerful as dz, and we haven't seen it yet. phpwind, vbb, and so much data is bigger than dz, let alone anything else.
You may not be able to change your style.
Many images can be optimized. The performance of zend-optimized dz is definitely the first, not the second, and it is worth the effort and effort.

Which of the following do you have ?, The top ten misunderstandings of php are several developers. you often see news such as the reasons for not using XX on the Internet. As the most popular open source...

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.