[Turn to page] becoming a PHP expert is not difficult

Source: Internet
Author: User
Tags zend framework
I'm sure someone will miss this article, and I personally think that the example of a beginner PHP user and a PHP expert is very graphic

Abstract: Beginner, Intermediate, professional and elite in the use of PHP is obviously not the same, everyone wants to become a good PHP experts, of course, Rome is not built in a day, from the beginner to the experts need to go through what kind of process? Select Code, analyze projects, create PHP environments, try different frameworks ...

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 it is easy to develop a complete project?? From chart design to final execution. 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 the beginner needs 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 suggestion 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-world terminology. 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.

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 do experiments?? If an error occurs, you can wipe it off again 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.

Do experiments with your own created settings to familiarize yourself 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.


Reply to discussion (solution)

I was deeply impressed by this article. I do not know how the old Xu such an expert is how to look at such articles, but for my typical primary user, it is very meaningful.

Will learn some variables, include () contains files, 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.

Review my own, the biggest and most urgent problem is that object-oriented use of bad, to learn and try as soon as possible.

Share

occupies a position.

Now that you have a name, say something.

He describes the general concept, if you replace the word PHP with Java, C + +,. Net ... Can be sent to different discussion areas.
He did not discuss how to "become" an expert, and he was far from the subject.
For example, "they write extensions to augment PHP's development capabilities," not the PHP experts, but the C + + experts.

More than two years of experience in the development of PHP, the primary is the realization of the function, advanced high-pressure and high-performance related development. It is not known whether such a statement is accurate.

More than two years of experience in the development of PHP, the primary is the realization of the function, advanced high-pressure and high-performance related development. It is not known whether such a statement is accurate.
Study the

Recently has been looking at design patterns and various framework source code, read someone else's codes, login registration are afraid to write.
In particular, the Zend Framework is called a halo, but slowly a lot of logic becomes clear, eager to step ah.

Rookie drifting past ....

On the CSDN homepage looked

World?? , I am afraid of a conscientious.
The day? + hold.

If you replace the word PHP with Java, C + +,. Net ... Can be sent to different discussion areas.

I see......

Become a PHP expert at the same time, but also can become experts in other languages, in the final analysis, or to rely on their own accumulation, share with others, help others at the same time to help themselves

I was deeply impressed by this article. I do not know how the old Xu such an expert is how to look at such articles, but for my typical primary user, it is very meaningful.

Reference
Will learn some variables, include () contains files, 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.

Review my own, the biggest and most urgent problem is that object-oriented use of bad, to learn and try as soon as possible.

Share

"10000+ hours of technical training", I think it should soon have it, has been engaged in this for more than 5 years. But dare not call oneself is the PHP expert, oneself feel oneself half bucket of water. More and more I always feel that I can't get into state. Very want to rest every day overtime, touch do not want to touch, I really do not know how long I can do in this line ...

  • 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.