How can I become a PHP expert? Bruno Skvorc is a senior Web developer. This article mainly describes the process of becoming a professional PHP expert, and how to learn and master skills and give away tools. (The following is the compilation content)
When I read various PHP-related blogs, Quora questions, Google + Communities, news and magazines, I often notice polarization in technology. The question is "how do I connect to a MySQL database ?", Or "how can I enable the email system to send more than 1 million emails per hour without introducing a new server ?" Within this range.
Through analysis and research, users can be divided into four categories based on the ability to use PHP: elementary, intermediate, professional and elite.
In extreme cases
Using the PHP language, beginners will learn some variables, include () include files, form processing. I will also learn some logic architecture, and even send an email with the help of tutorials. even when I click on an object-oriented programming case, I may not really understand how it works.
Every day, PHP experts spend a lot of time applying PHP to various projects, such as commercial applications or applications that require a combination of databases and PHP. In addition, these experts will participate in various seminars, learn to design various models, and easily develop a complete project ?? From Chart design to final execution. The key point is that they no longer stick to procedural code programming.
An elite programmer is a legendary professional PHP professional who has been honed by more than 10000 Hours of technology. they use their own programming extensions to expand the PHP development functions. What's more, they only need to roughly browse the source file to find out the bug, and the code layout can be quite detailed. They are able to create the most complex projects. they have already found an alternative perfect solution before others can discover problems. In addition, they will write some popular PHP language books, participate in various seminars, and create a very successful framework.
Key links
How can a programmer transform from a beginner to a professional or a more powerful role? If a person only has the basic programming knowledge, it is basically impossible to improve, let alone to use some more advanced technical methods. To become a professional PHP programmer, you must first become an intermediate PHP programmer.
The following list is the process that beginners need to go through ?? Proficient in using PHP.
Abandon pasta code
Many people think that using classes means writing object-oriented code, while using functions means writing procedural code. In fact, this is a big mistake. let's take a look at a wide range of vanilla definitions: procedural code means code that does not need to use classes and targets. OOP code is to use as many classes and targets as possible.
The suggestion here is to completely discard procedural code and use as many object-oriented encoding styles as possible ?? Write classes, encapsulate logic, and consider real terms. The performance advantage of procedural code built on the basis of class code is insignificant compared with the reusable OOP code. the appropriate OOP code allows future developers to inherit your project.
Carefully analyze existing projects
No matter where you see the source code, you should carefully study it. For example, find the PHP project in Github, copy it, deploy it on your own device, and try to run the project with your own code. One file followed by one file, one line of code followed by one line of code until you truly understand the meaning of each code.
Create your own PHP environment
Creating your own PHP environment is also a very precious skill. This not only familiarized you with the PHP installation settings, but also familiarized you with how to implement function expansion by modifying the source code.
Can virtual machines and virtualization software help you do experiments ?? If an error occurs, you can erase it and start again or perform a rollback. You can also perform as many Test experiments as possible literally without worrying about getting too messy. It is very important to know how to use tools, but it is equally important to have a good workbench.
Experiment with the settings you have created can also familiarize you with different servers ?? For example, when to use Nginx, Apache, or Appserver.
Early application of best practices
When writing your own code, make sure that you strictly comment your own document block, indent it perfectly, and carefully complete the architecture. After building a class, project, or class library, extract the document block using the PHPDocumentor (ApiGen) with excellent performance and improve it.
Early adaptation to best practices can help you stay consistent in the project process and help others read your code fluently. Find your style and stick to it ?? This is good for you and others.
Try different frameworks
For a long time, PHP is a programming language with the most frameworks, regardless of its influence in the technical community and language, but the truth is, choosing a framework is a tough task, especially at the beginning.
After a long trial of most frameworks, we sincerely recommend Phalcon as the main framework, mainly because of its outstanding performance in robustness and quality. In fact, Phalcon is written in C language, it can also be used as a PHP Extension Framework for installation. In any case, it is absolutely necessary to try different frameworks.
Large amount of reading materials
Do not underestimate the hints and tips provided by others (whether in books or at work) and read as much programming knowledge as possible. Read blogs and tutorials, read questions and answers on StackOverflow, and subscribe to news and magazines. However, to avoid basic PHP tutorials, it is best to focus on some useful and up-to-date code snippets and tutorials on the Internet. Even the content that has been read can be read several times, so that you can understand new ideas from others' opinions.
Conclusion
In addition, when there is nothing to do, you may wish to create a project by yourself: If you feel that there are too few App features in daily use, create some auxiliary functions by yourself, or try to build a basic Facebook. Never relax and maintain your creativity. In addition, you can find a companion or mentor to learn from each other and make progress much faster than building a closed-door car.
When you really focus on the methods mentioned above, you may be on your way to becoming a PHP expert.
Original article: Sitepoint