Some misconceptions about PHP programming, and clarification, are worth pondering, and some are just a figment of the 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 unable to implement specific functions
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 Not Safe
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 only 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.
With the development and expansion of programming 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.
Brother even PHP The job class sent a ho! One send guaranteed pay straight up 1000 yuan! Two send 900 Yuan Cloud class online Class! Three to 300 yuan accommodation subsidy! Please poke: Http://t.cn/zRKHtQJ
10 days to write the turret legend: http://yun.itxdl.cn/online/cocos/index.php
Play Public account: http://yun.itxdl.cn/online/weixin/index.php
About PHP Programming Mistakes