Correct posture for becoming a PHP programmer
I am a junior dog and I have been studying PHP for almost two years. I feel like I am an entry-level player. Let's talk about how we came along step by step.
1. Official documentation
Yes, I still stick to that point of view: 80% of code problems can be solved by reading the documentation carefully.
So if you want to learn PHP, you cannot avoid official PHP documents. You may have followed a teacher's online teaching video at the beginning. This learning programming method is excellent. However, no matter how you watch the video, you still have to go back to the official website. You don't need to use every function. However, we recommend that you save some common functions and core concepts to the memory area of your brain, make sure that they can be called at any time when needed. You can only remember some less commonly used functions. If you are not sure, you can check them back. However, you have to carefully read the content, including the sample code.
2. PHP THE RIGHT WAY
I don't know how other PHP learners came along. I don't know if they found such a great learning material for PHP. However, I believe that if I have carefully read THE PHP THE RIGHT WAY content and mastered most of THE knowledge, this PHP engineer will be very promising. This may be the difference between K and K for a new PHP engineer.
3. Write more websites
In the end, programming is actually a craft. For programmers with similar IQ, the skill level is usually based on the skill level. Since PHP is born to be used to create Web applications, there is no doubt that you can write more code and turn your interesting ideas into websites built with code. Nothing else, just to practice more, this process can expose you to more code problems. Once you solve these problems, your experience is improved.
I have written several websites for so long, and I'm very impressed with the following:
In fact, when writing these things, the more problems you solve, the more you can improve your capabilities.
4. Get started with the framework
Writing code is indeed a craft, but after we have mastered enough basic knowledge, we should consider how to create an application and how to write a better application faster. At this time, the role of the Framework is shown. It not only improves your development efficiency, but also allows you to write code like Laravel. Take a good look at how MVC is implemented in the Framework, take a good look at what happens in the framework documentation, and think about what is the best mode if I want to expand this framework? Basically, we should follow the learning framework -- use the framework -- extend the framework -- and contribute to the Framework source code to learn a framework, so we can almost grasp all the knowledge of the framework, at this time, your programming ideas and levels will be greatly improved.
Recommended framework: Laravel Slim Symfony Yii
5. Read Source Code
If writing more code is a learning of construction, the reading Source Code mentioned here is a learning of disassembly. At the same time of creation, you may wish to look at how the beautiful wheels are created and how people can solve the same problem, while discovering that the idea of the great god is so brilliant, you are also absorbing the idea of the great god.