This author Bruno Skvorc is a veteran web developer. In this article, we will focus on the process of becoming a professional PHP expert, and how you can learn to master skills and take care of the tools in this process. (Compile content below)
When reading a variety of PHP-related blogs, Quora issues, Google + community, news, and magazines, you will often notice the technical polarization of the phenomenon. The question revolves around "How do I connect to a MySQL database?" ", or" how can I enable the messaging system to send more than 1 million emails per hour without introducing a new server? " "In such a range.
Through analysis and research, the application can be divided into four categories according to the ability to use PHP: Beginner, Intermediate, professional and elite.
In extreme cases
Using the PHP language, beginners will learn about variables, include (include) files, and form processing. You'll also learn some logical architectures, and even send an email with a tutorial, even when you click on an object-oriented programming case, it doesn't necessarily really understand how it works.
PHP experts spend a lot of time every day applying PHP to various projects, such as business applications or various applications that require a combination of database and PHP. In addition, these experts will participate in various seminars, learn to design a variety of models, and easily develop a complete project-from the diagram design to the final implementation. The key point is that they are no longer rigidly tied to programming code.
Elite programmers are legendary after the 10000+ hours of technical training of professional PHP people, they write extensions to expand the development of PHP features, more cattle, they just a cursory glance at the source files can find bugs, the code layout can be said to be quite meticulous. They were able to create the most complex projects, and they had found the perfect alternative before anyone could find the problem. In addition, they will write some of the more popular PHP language books, to participate in various seminars, to create a very successful framework is also a cinch.
Key Links
How does a programmer shift from beginner to professional or to a more powerful role? If a person only basic programming knowledge, it is basically impossible to improve, let alone to use some more advanced technical methods. To become a professional PHP programmer, the first thing to do is to become an intermediate PHP programmer.
The next list is the process that beginners need to go through--the process of using PHP skillfully.
Discard Spaghetti Code
Many people think that using a class means writing object-oriented code, whereas using a function means writing procedural code. In fact, this is a big mistake, let's assume a broad definition of vanilla: Procedural Code is code that doesn't need classes and targets, and OOP code is as much code as possible with classes and targets.
The advice here is to completely abandon the code and use the object-oriented coding style as much as possible-write classes, encapsulate logic, and consider real terms. The performance advantage of procedural code based on class code is negligible compared to the utilitarian OOP code, which allows future developers to inherit your project.
< p="">
Careful analysis of existing projects
No matter where you see the source code, you need to delve into it carefully. For example, find a PHP project on GitHub, copy it, deploy it on your device, and try to run the project in combination with your own code. A file followed by a file, a line of code followed by a line of code, until you really understand the meaning of each code.
Create your own PHP environment
Creating your own PHP environment is also a valuable skill. This not only allows you to familiarize yourself with the installation settings of PHP, but also allows you to familiarize yourself with how to extend the functionality by modifying the source code.
Virtual machines and virtualization software can also help you experiment--if there is an error, you can erase the restart or do a rollback. You can also test your experiments literally as much as possible, without worrying about being too messy. It is important to master how the tools are used, but it is equally important to have a good work desk.
Experimenting with the settings you create yourself can also make you familiar with different servers-for example, when to use Nginx or Apache, or to use AppServer and so on.
Early application of best practices
When writing your own code, make sure that your document blocks are tightly annotated, perfectly indented, and the architecture carefully completed. After building a class, project, or class library, use the excellent document tool (Phpdocumentor,apigen) to extract the block of documents and make improvements on this block of documents.
Adapting best practices early can help you stay consistent in your project process and help others to read your code fluently. Find your style and stick to it-it's good for you and for everyone else.
Try a different frame
For a long time, PHP was a programming language with the most framework, regardless of the impact of this claim on the technical community and the language community, but the fact is that choosing a framework is a very tangled thing, especially at the beginning.
After a long trial of most frames, it is recommended that Phalcon as the main framework, mainly due to its robustness and quality performance, in fact, Phalcon is written in C language, and can be used as a PHP extension framework installation. In any case, it is absolutely necessary to try a different framework.
Extensive reading materials
Never underestimate the hints and tips that others give you (whether in books or at work) and read as many programming knowledge as possible. Read blogs, tutorials, reading questions and answers on StackOverflow, subscribing to information magazines, and more. But to avoid the basics of PHP tutorials, it's best to focus on individual snippets and tutorials that are useful on the web, with the latest code. Even the content that has already been read can be read several times, and you will be able to understand new ideas from other people's points of view.
Conclusion
In addition, when you have nothing to do, you might want to create a project yourself: feel that your daily app is too small, create some accessibility features yourself, or try to recreate a basic Facebook. Don't relax and keep your creativity. In addition, you can find a companion/mentor, the progress of learning with each other faster than the speed of the closed doors.
When you are really focused on practicing the various methods mentioned above, you may be on the way to becoming a PHP expert.
Original: SitePoint
http://www.bkjia.com/PHPjc/714732.html www.bkjia.com true http://www.bkjia.com/PHPjc/714732.html techarticle This author Bruno Skvorc is a veteran web developer. In this article is mainly about becoming a professional PHP experts to go through the process, and how to learn in the process ...