Original article name: 5waystobeabetterphp?www. effectutorials. comblogweb5-ways-to-be-a-better-php-developer-36 English translation: Altair draft first: www.phpinternals.com often have some inexperienced PHP developers in Freenode # phpIRC
First draft of Altair: http://www.developertutorials.com/blog/web/5-ways-to-be-a-better-php-developer-36//often experienced php developers in Freenode # PHP IRC
Original article name: 5 ways to be a better php developer
Http://www.developertutorials.com/blog/web/5-ways-to-be-a-better-php-developer-36/
Altair
Draft initial: http://www.phpinternals.com/
Some experienced PHP developers often ask questions on the # php IRC channel of Freenode. If the question is trivial, the answer is obvious, or it looks like a cainiao, they will soon find that they will be bombarded by the following replies: "read the damn manual ", "Learn PHP well", "We are not your mentor", or "you need to be a better PHP developer ". But how can we become a better PHP developer? In this article, I listed five methods to become better PHP developers, allowing you to improve efficiency during PHP development and use less code to accomplish more things. There will always be more content to learn in the PHP development process, such as new core functions, new frameworks, new design patterns, and new coding or document specifications. Below are some of the best ways to become a better PHP developer.
1. Read the manual
There is nothing more to emphasize than reading the manual-you can learn a lot by reading the manual. In particular, functions related to strings and arrays. Many useful functions are included in these functions. if you carefully read the manual, you will often find that in the previous project development process, you often "reinvent the wheel ", in fact, you only need a core function to complete the corresponding functions. The manual is your friend.
2. Read the program source code
There are many open-source programs developed using PHP. Why not study and learn from it? Download the source code of an open-source PHP application. Read it carefully. Maybe the larger the project, the more worth reading. Although they may have more complex structures and systems, there are more detailed explanations. If you do not know where to start, you can check the website http://www.sourceforge.net /.
3. Learning a framework
Today's frameworks have sprung up. Most of them are open-source and can be downloaded directly from the Internet. Of course, you need to know where to download them. You can select some mainstream frameworks first-there is a list of very good mainstream frameworks in the website http://www.phpframeworks.com.
4. Research
You may have heard many terms in the PHP website development process and discussion. From OOP to MVC, KISS to DRY, YAML to INI, and even REST to XML-RPC, there may be hundreds of technical concepts directly related to your work. You may have a basic understanding of them, but do you really know what they are and what they mean to you? Take some time to do some practical research. Wikipedia is a good starting point for these studies. You will certainly learn some new knowledge from it.
5. Learn Object-Oriented Programming
This may be the continuation of the previous method, but OOP is more important than you think. Do you really understand how OOP is implemented in PHP5? For example, do you really understand abstract classes, interfaces, "implements" keywords, static methods and static attributes, and the access modifier "protected? Even many experienced developers are faced with these problems. If you can fully utilize the features of OOP, you can save a lot of development time.
That's all. To become a PHP guru, This is the five most direct and important methods.
------------------------------
The Chinese/English version of this article has been published in the PHP English section.
Source: http://bbs.phpchina.com/thread-66980-1-1.html